Skip to content

Commit

Permalink
Update cron schedule for automated raffle draws
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoCoding committed Apr 10, 2024
1 parent 93de3ac commit 583a245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ app.use("/raffles", raffleRoutes);
// });

// Schedule automated raffle draws every minute
cron.schedule("* * * * *", () => {
cron.schedule("0 0 * * *", () => {
console.log("Initiating automated draw for eligible raffles...");
automatedDrawForEligibleRaffles()
.then(() => console.log("Automated draw completed."))
Expand Down

0 comments on commit 583a245

Please sign in to comment.