Skip to content

Commit

Permalink
--add: cron started!
Browse files Browse the repository at this point in the history
  • Loading branch information
ritwickbhargav80 committed Aug 7, 2020
1 parent ddf8f21 commit 572f8d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ var job = new CronJob(
totalUnits: x,
totalSalePrice: y.toFixed(2),
});
// shop.todaySales = [];
// await shop.save();
shop.todaySales = [];
await shop.save();
console.log("Running Cron!");
},
null,
true,
Expand Down

0 comments on commit 572f8d1

Please sign in to comment.