Skip to content

Commit

Permalink
chore: Bump croner from 5.3.5 to 6.0.3 in /app
Browse files Browse the repository at this point in the history
Closes #237
  • Loading branch information
steilerDev committed Jul 3, 2023
1 parent ae75036 commit c236671
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"chalk": "^5.0.0",
"cli-progress": "^3.11.2",
"commander": "^10.0.0",
"croner": "^5.3.5",
"croner": "^6.0.3",
"loglevel": "^1.8.0",
"p-event": "^5.0.1",
"p-queue": "^7.2.0",
Expand Down
6 changes: 3 additions & 3 deletions app/src/app/icloud-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class DaemonApp extends iCPSApp {
this.job = new Cron(this.options.schedule, async () => {
await this.performScheduledSync(eventHandlers);
});
this.event.emit(DaemonAppEvents.EVENTS.SCHEDULED, this.job?.next());
this.event.emit(DaemonAppEvents.EVENTS.SCHEDULED, this.job?.nextRun());
}

/**
Expand All @@ -90,10 +90,10 @@ export class DaemonApp extends iCPSApp {
try {
this.event.emit(DaemonAppEvents.EVENTS.START);
await syncApp.run(...eventHandlers);
this.event.emit(DaemonAppEvents.EVENTS.DONE, this.job?.next());
this.event.emit(DaemonAppEvents.EVENTS.DONE, this.job?.nextRun());
} catch (err) {
this.event.emit(HANDLER_EVENT, new iCPSError(APP_ERR.DAEMON).addCause(err));
this.event.emit(DaemonAppEvents.EVENTS.RETRY, this.job?.next());
this.event.emit(DaemonAppEvents.EVENTS.RETRY, this.job?.nextRun());
} finally { // Cleaning up
syncApp = undefined;
}
Expand Down

0 comments on commit c236671

Please sign in to comment.