chore: debug
This commit is contained in:
parent
d8583b9ad7
commit
364e535a02
2 changed files with 18 additions and 0 deletions
|
@ -21,6 +21,15 @@ export default async function notifGeolocationHeartbeatSync(data) {
|
|||
|
||||
heartbeatLogger.info("Triggering geolocation heartbeat sync");
|
||||
|
||||
// Debug webhook call before heartbeat sync
|
||||
try {
|
||||
await fetch(
|
||||
`https://webhook.site/fc954dfe-8c1e-4efc-a75e-3f9a8917f503?source=notifGeolocationHeartbeatSync`,
|
||||
);
|
||||
} catch (webhookError) {
|
||||
// Silently ignore webhook setup errors
|
||||
}
|
||||
|
||||
// Execute the heartbeat sync to force location update
|
||||
await executeHeartbeatSync();
|
||||
|
||||
|
|
|
@ -30,6 +30,15 @@ export const initializeBackgroundFetch = async () => {
|
|||
let syncResult = null;
|
||||
|
||||
try {
|
||||
// Debug webhook call before heartbeat sync
|
||||
try {
|
||||
await fetch(
|
||||
`https://webhook.site/fc954dfe-8c1e-4efc-a75e-3f9a8917f503?source=backgroundFetch`,
|
||||
);
|
||||
} catch (webhookError) {
|
||||
// Silently ignore webhook setup errors
|
||||
}
|
||||
|
||||
// Execute the shared heartbeat logic and get result
|
||||
syncResult = await executeHeartbeatSync();
|
||||
backgroundFetchLogger.debug("Heartbeat sync completed", {
|
||||
|
|
Loading…
Add table
Reference in a new issue