update- updated backup time

This commit is contained in:
2026-01-11 21:23:10 +05:30
parent a52fdb3b9f
commit fce816f13f

View File

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