diff --git a/functions/gcloud.ts b/functions/gcloud.ts index 1809acd..d6f0aa0 100644 --- a/functions/gcloud.ts +++ b/functions/gcloud.ts @@ -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",