Skip to content

Commit

Permalink
- fixing lz updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyferion committed Apr 15, 2024
1 parent 5eb065d commit bf72530
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/LZ Rate Updater/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit bf72530

Please sign in to comment.