1
0
Fork 0
mirror of synced 2024-09-28 07:21:35 +12:00

minor changes

This commit is contained in:
shimon 2022-11-15 16:33:43 +02:00
parent 6be62fb20e
commit 390fbc52eb
2 changed files with 4 additions and 10 deletions

2
.env
View file

@ -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=

View file

@ -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;