Skip to content

Commit

Permalink
Do not run 24h check for json
Browse files Browse the repository at this point in the history
  • Loading branch information
RemoLiechti committed Jun 3, 2024
1 parent ab9b104 commit e2e331e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/base-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ class BaseCommand extends Command {

this.setupParams(flags);

if (!flags.quiet && this.constructor.name !== 'SetupCommand') {
if (
!flags.quiet &&
!flags.json &&
this.constructor.name !== 'SetupCommand'
) {
this.doLog(this.getLogHeader());
const lastAction = Config.get('rde_lastaction');
if (lastAction && Date.now() - lastAction > 24 * 60 * 60 * 1000) {
Expand Down

0 comments on commit e2e331e

Please sign in to comment.