mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
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:
commit
a461eab30f
1 changed files with 4 additions and 1 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue