Skip to content

Commit

Permalink
Merge pull request #6 from jbranchaud/jb/fix-the-script-check
Browse files Browse the repository at this point in the history
Scheduled stuff takes a few minutes to run
  • Loading branch information
jbranchaud committed Jun 12, 2023
2 parents 0e1bb9e + 1f4da04 commit 8fc5afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduled-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const date = new Date;

const minutes = date.getMinutes();

if(minutes === 0) {
if(minutes < 30) {
process.exit(0)
} else {
process.exit(1)
Expand Down

0 comments on commit 8fc5afb

Please sign in to comment.