Option to disable/enable jobs

This commit is contained in:
2025-03-07 11:32:59 +01:00
parent bf332717a5
commit 5921e524a9
4 changed files with 9 additions and 4 deletions

View File

@ -212,6 +212,7 @@ public class JobController(PgsqlContext context) : Controller
return NotFound();
ret.RecurrenceMs = modifyJobRecord.RecurrenceMs ?? ret.RecurrenceMs;
ret.Enabled = modifyJobRecord.Enabled ?? ret.Enabled;
context.SaveChanges();
return new AcceptedResult(ret.JobId, ret);