Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿš‘ fix (#563)

authored by

Thibault Le Ouay and committed by
GitHub
5ff3db02 35154613

+3 -3
+3 -3
apps/web/src/app/api/checker/cron/_cron.ts
··· 77 77 allResult.push(response); 78 78 if (periodicity === "30s") { 79 79 // we schedule another task in 30s 80 - const scheduledAt = timestamp / 1000 + 30; 80 + const scheduledAt = timestamp + 30 * 1000; 81 81 const response = await createCronTask({ 82 82 row, 83 83 timestamp: scheduledAt, ··· 93 93 await Promise.all(allResult); 94 94 console.log(`End cron for ${periodicity} with ${allResult.length} jobs`); 95 95 }; 96 - 96 + // timestamp needs to be in ms 97 97 const createCronTask = async ({ 98 98 row, 99 99 timestamp, ··· 132 132 body: Buffer.from(JSON.stringify(payload)).toString("base64"), 133 133 }, 134 134 scheduleTime: { 135 - seconds: timestamp, 135 + seconds: timestamp / 1000, 136 136 }, 137 137 }; 138 138