minor changes
This commit is contained in:
parent
6be62fb20e
commit
390fbc52eb
2 changed files with 4 additions and 10 deletions
2
.env
2
.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=
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue