diff --git a/.env b/.env index 53aa2ac7c2..390e838d8f 100644 --- a/.env +++ b/.env @@ -87,6 +87,6 @@ _APP_USAGE_DATABASE_INTERVAL=15 _APP_USAGE_STATS=enabled _APP_LOGGING_PROVIDER= _APP_LOGGING_CONFIG= -_APP_REGION=nyc1 +_APP_REGION=default _APP_DOCKER_HUB_USERNAME= _APP_DOCKER_HUB_PASSWORD= diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 2549a6b64b..4e844f95a2 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -547,9 +547,7 @@ App::patch('/v1/functions/:functionId/deployments/:deploymentId') $schedule->setAttribute('active', $active); - Authorization::skip(function () use ($dbForConsole, $schedule) { - $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule); - }); + Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); $events ->setParam('functionId', $function->getId()) @@ -597,9 +595,7 @@ App::delete('/v1/functions/:functionId') ->setAttribute('active', false) ; - Authorization::skip(function () use ($dbForConsole, $schedule) { - $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule); - }); + Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); $deletes ->setType(DELETE_TYPE_DOCUMENT) @@ -804,9 +800,7 @@ App::post('/v1/functions/:functionId/deployments') $schedule->setAttribute('active', $active); - Authorization::skip(function () use ($dbForConsole, $schedule) { - $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule); - }); + Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); $metadata = null;