chore: debug

This commit is contained in:
Jo 2025-07-26 15:14:44 +02:00
parent d8583b9ad7
commit 364e535a02
Signed by: devthejo
GPG key ID: 00CCA7A92B1D5351
2 changed files with 18 additions and 0 deletions

View file

@ -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();

View file

@ -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", {