Skip to content

Commit 9f2a13c

Browse files
committed
fix: evoting cron
1 parent c07f786 commit 9f2a13c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platforms/evoting-api/src/services/CronManagerService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export class CronManagerService {
7272
} {
7373
return {
7474
deadlineCheckJob: {
75-
running: this.deadlineCheckJob ? this.deadlineCheckJob.running : false,
76-
nextRun: this.deadlineCheckJob ? this.deadlineCheckJob.nextDate().toDate() : undefined
75+
running: this.deadlineCheckJob ? true : false,
76+
nextRun: undefined // node-cron doesn't provide next run time in newer versions
7777
}
7878
};
7979
}

0 commit comments

Comments
 (0)