1
0
Fork 0
mirror of synced 2024-07-02 05:00:33 +12:00

Update console

This commit is contained in:
Matej Bačo 2023-06-23 09:01:51 +02:00
parent cc06a4bdaa
commit 310d56490e
3 changed files with 5 additions and 4 deletions

@ -1 +1 @@
Subproject commit 4129413f128d356464f935ca466d9c147f72a0a0
Subproject commit fffdd221b9847cd929481263480d597668503a83

View file

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

View file

@ -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'] ?? '';