try { const body = JSON.parse($response.body); const YEARS_TO_SUBTRACT = 60 * 60 * 24 * 18200; // ~49.86 years const TWO_HOURS = 7200; // 2 hours in seconds const now = Math.floor(Date.now() / 1000); // Get and increment call count let callCount = parseInt($persistentStore.read("r26_call_count") || "0") + 1; $persistentStore.write(callCount.toString(), "r26_call_count"); // Update timestamp if exists if (body?.timestamp) { body.timestamp = now - YEARS_TO_SUBTRACT + (callCount * TWO_HOURS); } $done({ body: JSON.stringify(body) }); } catch (error) { $done({}); }