Skip to content

Commit

Permalink
fix(hapi): fix next scheduleUpdate time
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Jul 29, 2024
1 parent 78581a5 commit f7e2204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hapi/src/services/fio.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ const syncRewards = async () => {
if (scheduleTimeMs > 0) {
scheduleTime.setSeconds(scheduleTime.getSeconds() + 86400)

const nextScheduleUpdate = Math.ceil((scheduleTimeMs - (new Date()).getTime()))
const nextScheduleUpdate = Math.ceil((scheduleTime.getTime() - (new Date()).getTime()))

if (nextScheduleUpdate > 0) {
console.log(`SYNCING FIO REWARDS - sync completed, next sync on ${scheduleTime.toISOString()}`)
Expand Down

0 comments on commit f7e2204

Please sign in to comment.