${notificationDetails.message}
+ ++ Unsubscribe from email notifications +
+ `, + headers: { + "List-Unsubscribe": `<${unsubscribeUrl}>`, + "List-Unsubscribe-Post": "List-Unsubscribe=One-Click", + }, + }); + } +} diff --git a/apps/queue/src/notifications/services/channels/types.ts b/apps/queue/src/notifications/services/channels/types.ts new file mode 100644 index 000000000..6492e0129 --- /dev/null +++ b/apps/queue/src/notifications/services/channels/types.ts @@ -0,0 +1,16 @@ +import { ActivityType, User } from "@courselit/common-models"; + +export interface ChannelPayload { + domain: any; + actorUserId: string; + actor: Partial| + {NOTIFICATION_SETTINGS_COLUMN_ACTIVITY} + | + {notificationChannels.map((channel) => ( ++ {prettifyToken(channel)} + | + ))} +
|---|
+ {NOTIFICATION_SETTINGS_PAGE_DESCRIPTION} +
+