1
0
Fork 0
mirror of synced 2024-07-04 14:10:33 +12:00

Merge pull request #4695 from appwrite/fix-builds-worker

fix: return types
This commit is contained in:
Christy Jacob 2022-11-16 23:30:28 +05:30 committed by GitHub
commit 683447b3b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

View file

@ -123,10 +123,12 @@ class BuildsV1 extends Worker
/** Trigger Functions */
$pools = $register->get('pools');
$connection = $pools->get('queue')->pop();
$functions = new Func($connection->getResource());
$functions
->from($deploymentUpdate)
->trigger();
$connection->reclaim();
/** Trigger Realtime */

2
composer.lock generated
View file

@ -5302,5 +5302,5 @@
"platform-overrides": {
"php": "8.0"
},
"plugin-api-version": "2.1.0"
"plugin-api-version": "2.3.0"
}

View file

@ -116,9 +116,9 @@ class Event
/**
* Get project for this event.
*
* @return Document
* @return ?Document
*/
public function getProject(): Document
public function getProject(): ?Document
{
return $this->project;
}
@ -137,11 +137,11 @@ class Event
}
/**
* Get project for this event.
* Get user responsible for triggering this event.
*
* @return Document
* @return ?Document
*/
public function getUser(): Document
public function getUser(): ?Document
{
return $this->user;
}