From de95bf677e67586e82e991dd70e288e77648e10b Mon Sep 17 00:00:00 2001 From: Binyamin Yawitz <316103+byawitz@users.noreply.github.com> Date: Mon, 16 Sep 2024 15:05:20 -0400 Subject: [PATCH] fix: removing unneeded coroutine --- src/Appwrite/Platform/Tasks/ScheduleBase.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/ScheduleBase.php b/src/Appwrite/Platform/Tasks/ScheduleBase.php index 026656a729..cb02ec60fd 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleBase.php +++ b/src/Appwrite/Platform/Tasks/ScheduleBase.php @@ -34,14 +34,12 @@ abstract class ScheduleBase extends Action $this->connections = new Connections(); $type = static::getSupportedResource(); - go(function () use ($type) { - $this - ->desc("Execute {$type}s scheduled in Appwrite") - ->inject('pools') - ->inject('getConsoleDB') - ->inject('getProjectDB') - ->callback(fn (array $pools, callable $getConsoleDB, callable $getProjectDB) => $this->action($pools, $getConsoleDB, $getProjectDB)); - }); + $this + ->desc("Execute {$type}s scheduled in Appwrite") + ->inject('pools') + ->inject('getConsoleDB') + ->inject('getProjectDB') + ->callback(fn (array $pools, callable $getConsoleDB, callable $getProjectDB) => $this->action($pools, $getConsoleDB, $getProjectDB)); } /**