fix: wip
Some checks failed
/ build (map[dockerfile:./services/files/Dockerfile name:files]) (push) Successful in 1m21s
/ build (map[dockerfile:./services/api/Dockerfile name:api]) (push) Successful in 1m14s
/ build (map[dockerfile:./services/app/Dockerfile name:app]) (push) Successful in 1m16s
/ build (map[dockerfile:./services/watchers/Dockerfile name:watchers]) (push) Successful in 1m26s
/ build (map[dockerfile:./services/tasks/Dockerfile name:tasks]) (push) Successful in 1m37s
/ build (map[dockerfile:./services/hasura/Dockerfile name:hasura]) (push) Successful in 1m37s
/ build (map[dockerfile:./services/web/Dockerfile name:web]) (push) Failing after 13m43s
/ deploy (push) Has been cancelled

This commit is contained in:
devthejo 2025-07-09 22:25:27 +02:00
parent da7a02b282
commit 4cc74845c2
Signed by: devthejo
GPG key ID: 00CCA7A92B1D5351

View file

@ -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,
})