fix: Document mentions can be incorrectly attributed during collab session (#7913)

This commit is contained in:
Tom Moor authored and GitHub committed 2024-11-08 05:35:49 -08:00
1 parent 55ffd6d098
commit 9747c6ba5d
2 files changed
+2 -2

No files matched your search

@@ -40,7 +40,7 @@ export default class DocumentPublishedNotificationsTask extends BaseTask<Documen
await Notification.create({
event: NotificationEventType.MentionedInDocument,
userId: recipient.id,
actorId: document.updatedBy.id,
actorId: mention.actorId,
teamId: document.teamId,
documentId: document.id,
});
@@ -60,7 +60,7 @@ export default class RevisionCreatedNotificationsTask extends BaseTask<RevisionE
event: NotificationEventType.MentionedInDocument,
userId: recipient.id,
revisionId: event.modelId,
actorId: document.updatedBy.id,
actorId: mention.actorId,
teamId: document.teamId,
documentId: document.id,
});