api: run device cleanup job 1st of every month

This commit is contained in:
Abdullah Atta
2025-08-19 14:00:55 +05:00
parent 1344199807
commit 3ed30b206c

View File

@@ -233,7 +233,8 @@ namespace Notesnook.API
q.AddTrigger(opts => opts
.ForJob(jobKey)
.WithIdentity("DeviceCleanup-trigger")
.WithSimpleSchedule((s) => s.RepeatForever().WithInterval(TimeSpan.FromDays(30))));
// first of every month
.WithCronSchedule("0 0 0 1 * ? *"));
});
}