Skip to content

Commit

Permalink
bump croner to 5.0, enable cron legacy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Sep 27, 2022
1 parent e35684e commit 98bd759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Common.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,11 @@ Common.sink.determineCron = function(app) {
}

if (app.cron_restart) {
const Croner = require('croner');
const Cron = require('croner');

try {
Common.printOut(cst.PREFIX_MSG + 'cron restart at ' + app.cron_restart);
Croner(app.cron_restart);
Cron(app.cron_restart);
} catch(ex) {
return new Error(`Cron pattern error: ${ex.message}`);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"chokidar": "^3.5.1",
"cli-tableau": "^2.0.0",
"commander": "2.15.1",
"croner": "~4.1.92",
"croner": "^5.0.3",
"dayjs": "~1.8.25",
"debug": "^4.3.1",
"enquirer": "2.3.6",
Expand Down

0 comments on commit 98bd759

Please sign in to comment.