mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
addressing some comments
This commit is contained in:
@@ -18,7 +18,6 @@ class Database extends Event
|
||||
{
|
||||
parent::__construct($connection);
|
||||
|
||||
$this->setQueue($this->getProject()->getAttribute('database'));
|
||||
$this->setClass(Event::DATABASE_CLASS_NAME);
|
||||
}
|
||||
|
||||
@@ -110,6 +109,8 @@ class Database extends Event
|
||||
public function trigger(): string|bool
|
||||
{
|
||||
|
||||
$this->setQueue($this->getProject()->getAttribute('database'));
|
||||
|
||||
$client = new Client($this->queue, $this->connection);
|
||||
|
||||
return $client->enqueue([
|
||||
|
||||
@@ -38,8 +38,6 @@ class Schedule extends Action
|
||||
->inject('dbForConsole')
|
||||
->inject('getProjectDB')
|
||||
->callback(fn (Group $pools, Database $dbForConsole, callable $getProjectDB) => $this->action($pools, $dbForConsole, $getProjectDB));
|
||||
|
||||
throw new Exception('error on Schedule cli');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user