mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 19:22:45 +00:00
api: run device cleanup job 1st of every month
This commit is contained in:
@@ -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 * ? *"));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user