1
0
Fork 0
mirror of synced 2024-07-02 13:10:38 +12:00

addressing some comments

This commit is contained in:
shimon 2023-10-17 07:02:54 +03:00
parent 55dfb0b034
commit e8dbd043ec
2 changed files with 2 additions and 3 deletions

View file

@ -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([

View file

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