From f55d9e7f17acbaafa2fc27861582e43c920ad279 Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Sun, 27 Oct 2024 22:28:37 +0100 Subject: [PATCH] Fix comment notifications with explicit type --- .../notifications/src/processNotifications/mappers/comment.ts | 2 +- .../src/processNotifications/mappers/commentMention.ts | 2 +- .../src/processNotifications/mappers/commentReaction.ts | 2 +- .../src/processNotifications/mappers/commentThread.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/discovery-provider/plugins/notifications/src/processNotifications/mappers/comment.ts b/packages/discovery-provider/plugins/notifications/src/processNotifications/mappers/comment.ts index c967cff957b..e834ed22bc8 100644 --- a/packages/discovery-provider/plugins/notifications/src/processNotifications/mappers/comment.ts +++ b/packages/discovery-provider/plugins/notifications/src/processNotifications/mappers/comment.ts @@ -142,7 +142,7 @@ export class Comment extends BaseNotification { id: `timestamp:${timestamp}:group_id:${this.notification.group_id}`, userIds: [this.commenterUserId], type: 'Comment', - entityType: this.notification.data.type, + entityType: 'Track', entityId: this.entityId } } diff --git a/packages/discovery-provider/plugins/notifications/src/processNotifications/mappers/commentMention.ts b/packages/discovery-provider/plugins/notifications/src/processNotifications/mappers/commentMention.ts index 89255e466c6..3291b8af060 100644 --- a/packages/discovery-provider/plugins/notifications/src/processNotifications/mappers/commentMention.ts +++ b/packages/discovery-provider/plugins/notifications/src/processNotifications/mappers/commentMention.ts @@ -148,7 +148,7 @@ export class CommentMention extends BaseNotification