mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Upgrade console, formatting
This commit is contained in:
+1
-1
Submodule app/console updated: 9adb94cced...1d75b39555
@@ -1427,7 +1427,7 @@ App::post('/v1/functions/:functionId/executions')
|
||||
|
||||
$headersFiltered = [];
|
||||
foreach ($headers as $key => $value) {
|
||||
if(\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) {
|
||||
if (\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) {
|
||||
$headersFiltered[] = [ 'key' => $key, 'value' => $value ];
|
||||
}
|
||||
}
|
||||
@@ -1532,7 +1532,7 @@ App::post('/v1/functions/:functionId/executions')
|
||||
|
||||
$headersFiltered = [];
|
||||
foreach ($executionResponse['headers'] as $key => $value) {
|
||||
if(\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) {
|
||||
if (\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) {
|
||||
$headersFiltered[] = [ 'key' => $key, 'value' => $value ];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ App::init()
|
||||
/*
|
||||
* Appwrite Router
|
||||
*/
|
||||
|
||||
|
||||
$host = $request->getHostname() ?? '';
|
||||
$mainDomain = App::getEnv('_APP_DOMAIN', '');
|
||||
// Only run Router when external domain
|
||||
|
||||
@@ -82,13 +82,13 @@ Server::setResource('execute', function () {
|
||||
$headers['x-appwrite-event'] = $event ?? '';
|
||||
$headers['x-appwrite-user-id'] = $user->getId() ?? '';
|
||||
$headers['x-appwrite-user-jwt'] = $jwt ?? '';
|
||||
|
||||
|
||||
/** Create execution or update execution status */
|
||||
$execution = $dbForProject->getDocument('executions', $executionId ?? '');
|
||||
if ($execution->isEmpty()) {
|
||||
$headersFiltered = [];
|
||||
foreach ($headers as $key => $value) {
|
||||
if(\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) {
|
||||
if (\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) {
|
||||
$headersFiltered[] = [ 'key' => $key, 'value' => $value ];
|
||||
}
|
||||
}
|
||||
@@ -189,7 +189,7 @@ Server::setResource('execute', function () {
|
||||
|
||||
$headersFiltered = [];
|
||||
foreach ($executionResponse['headers'] as $key => $value) {
|
||||
if(\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) {
|
||||
if (\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) {
|
||||
$headersFiltered[] = [ 'key' => $key, 'value' => $value ];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user