mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
fix: removing unneeded coroutine
This commit is contained in:
parent
7d58879373
commit
de95bf677e
1 changed files with 6 additions and 8 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue