trivial fixes
This commit is contained in:
parent
0b767c0b8a
commit
77babbf6d8
|
@ -116,7 +116,7 @@ function logError(Throwable $error, string $action, Utopia\Route $route = null)
|
||||||
Console::error('[Error] Line: ' . $error->getLine());
|
Console::error('[Error] Line: ' . $error->getLine());
|
||||||
};
|
};
|
||||||
|
|
||||||
function getDevice($root): Device {
|
function getStorageDevice($root): Device {
|
||||||
switch (App::getEnv('_APP_STORAGE_DEVICE', Storage::DEVICE_LOCAL)) {
|
switch (App::getEnv('_APP_STORAGE_DEVICE', Storage::DEVICE_LOCAL)) {
|
||||||
case Storage::DEVICE_LOCAL:default:
|
case Storage::DEVICE_LOCAL:default:
|
||||||
return new Local($root);
|
return new Local($root);
|
||||||
|
|
|
@ -39,7 +39,7 @@ class BuildsV1 extends Worker
|
||||||
{
|
{
|
||||||
$type = $this->args['type'] ?? '';
|
$type = $this->args['type'] ?? '';
|
||||||
$projectId = $this->args['projectId'] ?? '';
|
$projectId = $this->args['projectId'] ?? '';
|
||||||
$functionId = $this->args['functionId'] ?? '';
|
$functionId = $this->args['resourceId'] ?? '';
|
||||||
$deploymentId = $this->args['deploymentId'] ?? '';
|
$deploymentId = $this->args['deploymentId'] ?? '';
|
||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
|
|
Loading…
Reference in a new issue