แก้ cronjob เป็นเวลาตีหนึ่ง

This commit is contained in:
Suphonchai Phoonsawat 2024-01-10 13:02:25 +07:00
parent 2f733cd2a6
commit 01309ceceb

View file

@ -162,7 +162,7 @@ var app = builder.Build();
var manager = new RecurringJobManager();
if (manager != null)
{
manager.AddOrUpdate("ปรับปรุงรอบการลงเวลาทำงาน", Job.FromExpression<UserDutyTimeRepository>(x => x.UpdateUserDutyTime()), Cron.Daily(6, 0), TimeZoneInfo.Local);
manager.AddOrUpdate("ปรับปรุงรอบการลงเวลาทำงาน", Job.FromExpression<UserDutyTimeRepository>(x => x.UpdateUserDutyTime()), Cron.Daily(1, 0), TimeZoneInfo.Local);
}
// apply migrations