mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge pull request #4695 from appwrite/fix-builds-worker
fix: return types
This commit is contained in:
@@ -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 */
|
||||
|
||||
Generated
+1
-1
@@ -5302,5 +5302,5 @@
|
||||
"platform-overrides": {
|
||||
"php": "8.0"
|
||||
},
|
||||
"plugin-api-version": "2.1.0"
|
||||
"plugin-api-version": "2.3.0"
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user