feat(cron - db job ) - runtime updated to everyday

This commit is contained in:
2025-12-29 16:38:19 +05:30
parent c70a59a766
commit d3dd8077cd

View File

@@ -9,8 +9,8 @@ import { backupDatabaseToPath } from "../services/databaseBackupService";
* Creates a backup notification if overdue * Creates a backup notification if overdue
*/ */
export const startBackupCron = () => { export const startBackupCron = () => {
cron.schedule("0 2 */3 * *", async () => { cron.schedule("0 2 * * *", async () => {
// Every 3 calendar days, at 2 AM // Every calendar days, at 2 AM
// cron.schedule("*/10 * * * * *", async () => { // Every 10 seconds (for Test) // cron.schedule("*/10 * * * * *", async () => { // Every 10 seconds (for Test)
console.log("🔄 Running backup check..."); console.log("🔄 Running backup check...");