* Fixed Hangfire update jobs

This commit is contained in:
2025-08-24 08:48:11 +02:00
parent 81aae81016
commit eb756eedec
3 changed files with 185 additions and 151 deletions

View File

@@ -92,6 +92,17 @@
await LoadTasks();
}
}
private async Task UpdateTask(TaskSchedulerDto taskSchedulerDto)
{
var response = await HangfireService.UpdateTaskSchedulerAsync(taskSchedulerDto);
if (response == 1)
{
await LoadTasks();
}
}
private async Task LoadTasks()
{
@@ -108,6 +119,9 @@
case Action.Save when args.Data.Id == 0:
await AddTask(args.Data);
break;
case Action.Save when args.Data.Id != 0:
await UpdateTask(args.Data);
break;
}
}