diff --git a/app/executor.php b/app/executor.php index 19e1e5a4a..aa7a32ab6 100644 --- a/app/executor.php +++ b/app/executor.php @@ -116,7 +116,7 @@ function logError(Throwable $error, string $action, Utopia\Route $route = null) Console::error('[Error] Line: ' . $error->getLine()); }; -function getDevice($root): Device { +function getStorageDevice($root): Device { switch (App::getEnv('_APP_STORAGE_DEVICE', Storage::DEVICE_LOCAL)) { case Storage::DEVICE_LOCAL:default: return new Local($root); diff --git a/app/workers/builds.php b/app/workers/builds.php index 0eb6e60e6..8e75f1344 100644 --- a/app/workers/builds.php +++ b/app/workers/builds.php @@ -39,7 +39,7 @@ class BuildsV1 extends Worker { $type = $this->args['type'] ?? ''; $projectId = $this->args['projectId'] ?? ''; - $functionId = $this->args['functionId'] ?? ''; + $functionId = $this->args['resourceId'] ?? ''; $deploymentId = $this->args['deploymentId'] ?? ''; switch ($type) {