Skip to content

Commit

Permalink
updated notifications to notify every 15 min
Browse files Browse the repository at this point in the history
  • Loading branch information
UKnowWhoIm committed Jun 9, 2021
1 parent a19b31b commit 5102ae3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Logs
app.yaml

.gcloudignore

logs
*.log
npm-debug.log*
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ app.listen(port, () => {
});

// In debug mode send notif every minute
cron.schedule(DEBUG ? "*/5 * * * *" : "0 * * * *", () => {
cron.schedule(DEBUG ? "*/5 * * * *" : "*/15 * * * *", () => {
console.log("Starting notifications");
job();
},
Expand Down

0 comments on commit 5102ae3

Please sign in to comment.