1
0
Fork 0
mirror of synced 2024-09-14 16:38:28 +12:00
This commit is contained in:
Jake Barnby 2024-03-12 16:54:06 +01:00
parent c8e817a019
commit cfc69b0f92
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -111,14 +111,23 @@ class Database extends Event
$client = new Client($this->queue, $this->connection);
return $client->enqueue([
'project' => $this->project,
'user' => $this->user,
'type' => $this->type,
'collection' => $this->collection,
'document' => $this->document,
'database' => $this->database,
'events' => Event::generateEvents($this->getEvent(), $this->getParams())
]);
try {
$result = $client->enqueue([
'project' => $this->project,
'user' => $this->user,
'type' => $this->type,
'collection' => $this->collection,
'document' => $this->document,
'database' => $this->database,
'events' => Event::generateEvents($this->getEvent(), $this->getParams())
]);
\var_dump('Enqueued event');
\var_dump($result);
return $result;
} catch (\Throwable $th) {
\var_dump('Enqueue event failed');
\var_dump($th);
return false;
}
}
}