Skip to content

Commit

Permalink
IAN mention includes comment origin name (#4780)
Browse files Browse the repository at this point in the history
* mention includes comment origin name

* package version bump

* added correct description to the field
  • Loading branch information
hero101 authored Dec 12, 2024
1 parent 15c1951 commit 9d07e87
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"dependencies": {
"@alkemio/matrix-adapter-lib": "^0.4.1",
"@alkemio/notifications-lib": "0.10.0",
"@alkemio/notifications-lib": "0.10.1",
"@apollo/server": "^4.10.4",
"@elastic/elasticsearch": "^8.12.2",
"@golevelup/nestjs-rabbitmq": "^5.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,15 @@ export class InAppNotificationUserMentionedResolverFields {
): string {
return payload.commentOrigin.url;
}

@ResolveField(() => String, {
nullable: false,
description:
'The display name of the resource where the comment was created.',
})
public commentOriginName(
@Parent() { payload }: InAppNotificationUserMentioned
): string {
return payload.commentOrigin.displayName;
}
}

0 comments on commit 9d07e87

Please sign in to comment.