Skip to content

Commit

Permalink
do not require cron in CLI if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Apr 12, 2020
1 parent 154a2d0 commit 7319a7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lib/Common.js
Expand Up @@ -782,8 +782,11 @@ Common.verifyConfs = function(appConfs) {
}

var ret;
if ((ret = Common.sink.determineCron(app)) instanceof Error)
return ret;

if (app.cron_restart) {
if ((ret = Common.sink.determineCron(app)) instanceof Error)
return ret;
}

/**
* Now validation configuration
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -176,7 +176,7 @@
"chokidar": "^3.3.0",
"cli-table-redemption": "1.0.1",
"commander": "2.15.1",
"cron": "1.8.1",
"cron": "1.8.2",
"date-fns": "1.30.1",
"debug": "4.1.1",
"enquirer": "^2.3.2",
Expand Down

0 comments on commit 7319a7f

Please sign in to comment.