fix: Email notifications not sent when mention added to edited comment (#5145

* WIP: Need new email template

* New emails
This commit is contained in:
Tom Moor
2023-04-02 14:46:47 -04:00
committed by GitHub
parent 40103c9d8f
commit cf3689014b
9 changed files with 298 additions and 27 deletions

View File

@@ -279,13 +279,24 @@ export type PinEvent = BaseEvent & {
collectionId?: string;
};
export type CommentUpdateEvent = BaseEvent & {
name: "comments.update";
modelId: string;
documentId: string;
actorId: string;
data: {
newMentionIds: string[];
};
};
export type CommentEvent =
| (BaseEvent & {
name: "comments.create" | "comments.update";
name: "comments.create";
modelId: string;
documentId: string;
actorId: string;
})
| CommentUpdateEvent
| (BaseEvent & {
name: "comments.delete";
modelId: string;