Update console
This commit is contained in:
parent
cc06a4bdaa
commit
310d56490e
|
@ -1 +1 @@
|
|||
Subproject commit 4129413f128d356464f935ca466d9c147f72a0a0
|
||||
Subproject commit fffdd221b9847cd929481263480d597668503a83
|
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ 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.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue