mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: removing unneeded coroutine
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user