From 93c801caa670f0cdd9e5201ae927a37bcce62528 Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 9 Jun 2026 09:22:05 +0300 Subject: [PATCH] wrap with go --- src/Appwrite/Platform/Tasks/ScheduleBase.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/ScheduleBase.php b/src/Appwrite/Platform/Tasks/ScheduleBase.php index b09f806e73..67ef04cce6 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleBase.php +++ b/src/Appwrite/Platform/Tasks/ScheduleBase.php @@ -289,9 +289,11 @@ abstract class ScheduleBase extends Action } if (!empty($scheduleIdsToDelete)) { - $dbForPlatform->deleteDocuments('schedules', [ - Query::equal('$id', $scheduleIdsToDelete), - ]); + go(function () use ($dbForPlatform, $scheduleIdsToDelete) { + $dbForPlatform->deleteDocuments('schedules', [ + Query::equal('$id', $scheduleIdsToDelete), + ]); + }); } $lastSyncUpdate = $time;