Use actual instance

This commit is contained in:
Lance Pioch 2022-10-26 21:05:51 -04:00
parent 451522e6cf
commit 29c3d80e5b

View file

@ -83,7 +83,7 @@ class ScheduleTaskController extends ClientApiController
throw new HttpForbiddenException("A backup task cannot be created when the server's backup limit is set to 0.");
}
Task::query()->update([
$task->update([
'action' => $request->input('action'),
'payload' => $request->input('payload') ?? '',
'time_offset' => $request->input('time_offset'),