From 56a43c8f749219f4b08e70a0ccd4c9b6f56be9d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 15 Aug 2024 09:10:03 +0000 Subject: [PATCH] PR review changes --- app/controllers/api/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 1e504ceaf9..c55650bdc6 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1107,7 +1107,7 @@ App::post('/v1/functions/:functionId/deployments') ->inject('queueForBuilds') ->action(function (string $functionId, ?string $entrypoint, ?string $commands, mixed $code, mixed $activate, Request $request, Response $response, Database $dbForProject, Event $queueForEvents, Document $project, Device $deviceForFunctions, Device $deviceForLocal, Build $queueForBuilds) { - $activate = \strval($activate === 'true') || \strval($activate) === '1'; + $activate = \strval($activate) === 'true' || \strval($activate) === '1'; $function = $dbForProject->getDocument('functions', $functionId);