fix: wip
Some checks failed
/ build (map[dockerfile:./services/app/Dockerfile name:app]) (push) Successful in 1m44s
/ build (map[dockerfile:./services/files/Dockerfile name:files]) (push) Successful in 2m0s
/ build (map[dockerfile:./services/hasura/Dockerfile name:hasura]) (push) Successful in 2m21s
/ build (map[dockerfile:./services/api/Dockerfile name:api]) (push) Successful in 1m20s
/ build (map[dockerfile:./services/tasks/Dockerfile name:tasks]) (push) Successful in 2m20s
/ build (map[dockerfile:./services/watchers/Dockerfile name:watchers]) (push) Successful in 2m13s
/ build (map[dockerfile:./services/web/Dockerfile name:web]) (push) Failing after 10m17s
/ deploy (push) Has been cancelled
Some checks failed
/ build (map[dockerfile:./services/app/Dockerfile name:app]) (push) Successful in 1m44s
/ build (map[dockerfile:./services/files/Dockerfile name:files]) (push) Successful in 2m0s
/ build (map[dockerfile:./services/hasura/Dockerfile name:hasura]) (push) Successful in 2m21s
/ build (map[dockerfile:./services/api/Dockerfile name:api]) (push) Successful in 1m20s
/ build (map[dockerfile:./services/tasks/Dockerfile name:tasks]) (push) Successful in 2m20s
/ build (map[dockerfile:./services/watchers/Dockerfile name:watchers]) (push) Successful in 2m13s
/ build (map[dockerfile:./services/web/Dockerfile name:web]) (push) Failing after 10m17s
/ deploy (push) Has been cancelled
This commit is contained in:
parent
6c1bb2fa3d
commit
5a5a49634a
1 changed files with 12 additions and 1 deletions
|
@ -169,11 +169,22 @@ async function pushNotification({
|
|||
},
|
||||
}
|
||||
|
||||
// Prepare data payload - Firebase requires all values to be strings and no undefined values
|
||||
const dataPayload = {
|
||||
json: JSON.stringify(data),
|
||||
uid,
|
||||
}
|
||||
|
||||
// Only add actionId if it's defined
|
||||
if (notification?.actionId) {
|
||||
dataPayload.actionId = String(notification.actionId)
|
||||
}
|
||||
|
||||
// Construct message according to Firebase Admin SDK format
|
||||
// https://firebase.google.com/docs/reference/admin/node/firebase-admin.messaging.basemessage
|
||||
const message = {
|
||||
token: fcmToken,
|
||||
data: { json: JSON.stringify(data), uid, actionId: notification?.actionId },
|
||||
data: dataPayload,
|
||||
// Platform specific configurations
|
||||
android: derivedNotification.android,
|
||||
apns: derivedNotification.apns,
|
||||
|
|
Loading…
Add table
Reference in a new issue