diff --git a/app/console b/app/console index 4129413f12..fffdd221b9 160000 --- a/app/console +++ b/app/console @@ -1 +1 @@ -Subproject commit 4129413f128d356464f935ca466d9c147f72a0a0 +Subproject commit fffdd221b9847cd929481263480d597668503a83 diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 9a893ce5d8..a0e54eb14c 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1458,7 +1458,8 @@ App::post('/v1/functions/:functionId/executions') if ($record) { $eu = Config::getParam('locale-eu'); - $headers['x-appwrite-country-code'] = $record['country']['iso_code'] ?? '';; + $headers['x-appwrite-country-code'] = $record['country']['iso_code'] ?? ''; + ; $headers['x-appwrite-continent-code'] = $record['continent']['code'] ?? ''; $headers['x-appwrite-continent-eu'] = (\in_array($record['country']['iso_code'], $eu)) ? 'true' : 'false'; } diff --git a/app/controllers/api/vcs.php b/app/controllers/api/vcs.php index 4e0ba4a5ab..c31ca74c98 100644 --- a/app/controllers/api/vcs.php +++ b/app/controllers/api/vcs.php @@ -84,10 +84,10 @@ App::get('/v1/vcs/github/redirect') ->inject('response') ->inject('dbForConsole') ->action(function (string $installationId, string $setupAction, string $state, string $code, GitHub $github, Document $user, Document $project, Request $request, Response $response, Database $dbForConsole) { - if(empty($state)) { + if (empty($state)) { throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Installation requests from organisation members for the Appwrite GitHub App are currently unsupported. To proceed with the installation, login to the Appwrite Console and install the GitHub App.'); } - + $state = \json_decode($state, true); $redirect = $state['redirect'] ?? ''; $projectId = $state['projectId'] ?? '';