diff --git a/server/emails/templates/CommentCreatedEmail.tsx b/server/emails/templates/CommentCreatedEmail.tsx index e5531a5dca..3396caa272 100644 --- a/server/emails/templates/CommentCreatedEmail.tsx +++ b/server/emails/templates/CommentCreatedEmail.tsx @@ -24,7 +24,7 @@ type InputProps = EmailProps & { type BeforeSend = { document: Document; - collection: Collection; + collection: Collection | null; body: string | undefined; isFirstComment: boolean; isReply: boolean; diff --git a/server/emails/templates/DocumentPublishedOrUpdatedEmail.tsx b/server/emails/templates/DocumentPublishedOrUpdatedEmail.tsx index 32fbdb60b6..87057dcff5 100644 --- a/server/emails/templates/DocumentPublishedOrUpdatedEmail.tsx +++ b/server/emails/templates/DocumentPublishedOrUpdatedEmail.tsx @@ -31,7 +31,7 @@ type InputProps = EmailProps & { type BeforeSend = { document: Document; - collection: Collection; + collection: Collection | null; unsubscribeUrl: string; body: string | undefined; };