Skip to content

Commit

Permalink
Chore: Change stats to daily (#26113)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Jul 4, 2022
1 parent c1fdf05 commit 50836e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/meteor/server/cron/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ export function statsCron(SyncedCron, logger) {

generateStatistics(logger);

const now = new Date();

SyncedCron.add({
name,
schedule(parser) {
return parser.cron('12 * * * *');
return parser.cron(`12 ${now.getHours()} * * *`);
},
job: () => generateStatistics(logger),
});
Expand Down

0 comments on commit 50836e3

Please sign in to comment.