From 29c3d80e5b51f32b80959fa4f211a8d253eccab0 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Wed, 26 Oct 2022 21:05:51 -0400 Subject: [PATCH] Use actual instance --- .../Controllers/Api/Client/Servers/ScheduleTaskController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/Client/Servers/ScheduleTaskController.php b/app/Http/Controllers/Api/Client/Servers/ScheduleTaskController.php index 44d4e9df8..35ce258f4 100644 --- a/app/Http/Controllers/Api/Client/Servers/ScheduleTaskController.php +++ b/app/Http/Controllers/Api/Client/Servers/ScheduleTaskController.php @@ -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'),