mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
chore: update afterbuild pass adapter
This commit is contained in:
parent
aa4a58c8aa
commit
9d99f5cec2
1 changed files with 5 additions and 2 deletions
|
|
@ -899,7 +899,7 @@ class Builds extends Action
|
|||
|
||||
Console::log('Build details stored');
|
||||
|
||||
$this->afterBuildSuccess($queueForRealtime, $dbForProject, $deployment, $runtime);
|
||||
$this->afterBuildSuccess($queueForRealtime, $dbForProject, $deployment, $runtime, $adapter);
|
||||
$logs = $deployment->getAttribute('buildLogs', '');
|
||||
|
||||
/** Screenshot site */
|
||||
|
|
@ -1393,7 +1393,7 @@ class Builds extends Action
|
|||
* @return void
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function afterBuildSuccess(Realtime $queueForRealtime, Database $dbForProject, Document &$deployment, array $runtime): void
|
||||
protected function afterBuildSuccess(Realtime $queueForRealtime, Database $dbForProject, Document &$deployment, array $runtime, string $adapter): void
|
||||
{
|
||||
if (!($queueForRealtime instanceof Realtime)) {
|
||||
throw new Exception('queueForRealtime must be an instance of Realtime');
|
||||
|
|
@ -1407,6 +1407,9 @@ class Builds extends Action
|
|||
if (!is_array($runtime)) {
|
||||
throw new Exception('runtime must be an array');
|
||||
}
|
||||
if (!is_string($adapter)) {
|
||||
throw new Exception('adapter must be a string');
|
||||
}
|
||||
}
|
||||
|
||||
protected function getRuntime(Document $resource, string $version): array
|
||||
|
|
|
|||
Loading…
Reference in a new issue