Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't double-stringify fcm payloads
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 8967818 commit d350f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/gcloud.ts
Expand Up @@ -276,13 +276,13 @@ export async function sendPushNotification(
body: string,
token?: string,
) {
const message = JSON.stringify({
const message = {
notification: {
body,
title,
},
token,
});
};

const notifResp = await fetch(
"https://fcm.googleapis.com/v1/projects/car-crushers-mobile/messages:send",
Expand Down

0 comments on commit d350f6b

Please sign in to comment.