Skip to content

Commit

Permalink
decrease cron timing
Browse files Browse the repository at this point in the history
  • Loading branch information
devadathanmb committed Nov 27, 2023
1 parent 55299ab commit ee0cf73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cron/notifyUserCron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const delayBetweenBatches = 1000 * 60;

async function notifyUserCron(db: Firestore, bot: Telegraf<CustomContext>) {
console.log("Cron job initialized");
cron.schedule("*/15 * * * *", async () => {
cron.schedule("*/10 * * * *", async () => {
const startTime = new Date().toString();
console.log(`🔴 Cron job started at ${startTime}`);
readFile("data.json", "utf8", async (err, data) => {
Expand Down

0 comments on commit ee0cf73

Please sign in to comment.