From bf7253045e22754453bc475937da647ed561883b Mon Sep 17 00:00:00 2001 From: Silas Stulz Date: Mon, 15 Apr 2024 11:57:00 +0200 Subject: [PATCH] - fixing lz updater --- tasks/LZ Rate Updater/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/LZ Rate Updater/index.js b/tasks/LZ Rate Updater/index.js index 0fc5cfc..89c5491 100644 --- a/tasks/LZ Rate Updater/index.js +++ b/tasks/LZ Rate Updater/index.js @@ -22,8 +22,10 @@ const getCronScheduleForTimestamp = (timestamp) => { const date = new Date(timestamp * 1000); const minutes = date.getUTCMinutes(); const hours = date.getUTCHours(); + const dayOfMonth = date.getUTCDate(); + const month = date.getUTCMonth() + 1; - const cron = `${minutes} ${hours} * * *`; + const cron = `${minutes} ${hours} ${dayOfMonth} ${month} *`; return { type: 'schedule',