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 authored and weslley543 committed Jul 5, 2022
1 parent cf6b8dc commit 18df65e
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 18df65e

Please sign in to comment.