feat: send digestId with the push notification for deep link

This commit is contained in:
Hongbo Wu
2024-05-06 16:44:21 +08:00
parent 75f55959f2
commit bc802adc93

View File

@ -560,8 +560,11 @@ const sendPushNotification = async (userId: string, digest: Digest) => {
title: 'Omnivore Digest',
body: truncate(digest.title, { length: 100 }),
}
const data = {
digestId: digest.id,
}
await sendPushNotifications(userId, notification, 'reminder')
await sendPushNotifications(userId, notification, 'reminder', data)
}
const sendEmail = async (