Merge pull request #3900 from omnivore-app/feature/digest-push-notification-deep-link

feat: send digestId with the push notification for deep link
This commit is contained in:
Hongbo Wu 2024-05-06 17:16:39 +08:00 committed by GitHub
commit a461eab30f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 (