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
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:
parent
da7a02b282
commit
4cc74845c2
1 changed files with 8 additions and 3 deletions
|
@ -6,14 +6,14 @@ const addNotification = require("~/services/add-notification")
|
||||||
function createBackgroundGeolocationLostNotification() {
|
function createBackgroundGeolocationLostNotification() {
|
||||||
return {
|
return {
|
||||||
data: {
|
data: {
|
||||||
action: "background_geolocation_lost",
|
action: "background-geolocation-lost",
|
||||||
},
|
},
|
||||||
notification: {
|
notification: {
|
||||||
title: `Alerte-Secours ne peut plus accéder à votre position`,
|
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.`,
|
body: `Vous ne pouvez plus recevoir d'alertes de proximité. Vérifiez les paramètres.`,
|
||||||
channel: "system",
|
channel: "system",
|
||||||
priority: "high",
|
priority: "high",
|
||||||
actionId: "open-settings",
|
actionId: "open-background-geolocation-settings",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,11 +71,16 @@ module.exports = async function () {
|
||||||
const notificationConfig = createBackgroundGeolocationLostNotification()
|
const notificationConfig = createBackgroundGeolocationLostNotification()
|
||||||
|
|
||||||
// Send notification
|
// Send notification
|
||||||
|
logger.info(
|
||||||
|
{ deviceId, userId, notificationConfig },
|
||||||
|
"DEBUG: About to send background geolocation lost notification"
|
||||||
|
)
|
||||||
|
|
||||||
const { success } = await addNotification({
|
const { success } = await addNotification({
|
||||||
fcmToken,
|
fcmToken,
|
||||||
deviceId,
|
deviceId,
|
||||||
userId,
|
userId,
|
||||||
type: "background_geolocation_lost",
|
type: "background-geolocation-lost",
|
||||||
...notificationConfig,
|
...notificationConfig,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue