fix: removing unneeded coroutine

This commit is contained in:
Binyamin Yawitz 2024-09-16 15:05:20 -04:00
parent 7d58879373
commit de95bf677e
No known key found for this signature in database

View file

@ -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));
}
/**