From 4cc74845c2936c7cc22b4f9dce67cfbcd530b2eb Mon Sep 17 00:00:00 2001 From: devthejo Date: Wed, 9 Jul 2025 22:25:27 +0200 Subject: [PATCH] fix: wip --- .../src/queues/background-geolocation-lost-notify.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/services/tasks/src/queues/background-geolocation-lost-notify.js b/services/tasks/src/queues/background-geolocation-lost-notify.js index 36dc3c2..bc7e7bb 100644 --- a/services/tasks/src/queues/background-geolocation-lost-notify.js +++ b/services/tasks/src/queues/background-geolocation-lost-notify.js @@ -6,14 +6,14 @@ const addNotification = require("~/services/add-notification") function createBackgroundGeolocationLostNotification() { return { data: { - action: "background_geolocation_lost", + action: "background-geolocation-lost", }, notification: { title: `Alerte-Secours ne peut plus accéder à votre position`, body: `Vous ne pouvez plus recevoir d'alertes de proximité. Vérifiez les paramètres.`, channel: "system", priority: "high", - actionId: "open-settings", + actionId: "open-background-geolocation-settings", }, } } @@ -71,11 +71,16 @@ module.exports = async function () { const notificationConfig = createBackgroundGeolocationLostNotification() // Send notification + logger.info( + { deviceId, userId, notificationConfig }, + "DEBUG: About to send background geolocation lost notification" + ) + const { success } = await addNotification({ fcmToken, deviceId, userId, - type: "background_geolocation_lost", + type: "background-geolocation-lost", ...notificationConfig, })