1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

feat: fixed some issues and updated docker-compose

This commit is contained in:
Christy Jacob 2021-03-23 23:30:42 +05:30
parent b47e57b1a0
commit 457ab656e7
4 changed files with 15 additions and 11 deletions

View file

@ -1017,8 +1017,8 @@ App::delete('/v1/account')
$response
->addCookie(Auth::$cookieName.'_legacy', '', \time() - 3600, '/', Config::getParam('cookieDomain'), ('https' == $protocol), true, null)
->addCookie(Auth::$cookieName, '', \time() - 3600, '/', Config::getParam('cookieDomain'), ('https' == $protocol), true, Config::getParam('cookieSamesite'))
->noContent()
;
$response->dynamic(new Document(), Response::MODEL_NONE);
});
App::delete('/v1/account/sessions/:sessionId')

View file

@ -48,7 +48,7 @@ App::init(function ($utopia, $request, $response, $project, $user, $register, $e
//TODO make sure we get array here
foreach ($request->getParams() as $key => $value) { // Set request params as potential abuse keys
$timeLimit->setParam('{param-'.$key.'}', (\is_array($value)) ? \json_encode($value) : $value);
if (!is_null($value)) $timeLimit->setParam('{param-'.$key.'}', (\is_array($value)) ? \json_encode($value) : $value);
}
$abuse = new Abuse($timeLimit);

View file

@ -521,15 +521,19 @@ services:
# ports:
# - '3001:80'
# Dev Tools End ------------------------------------------------------------------------------------------
graphiql:
container_name: graphiql
ports:
- '9506:4000'
graphql-explorer:
container_name: graphql-explorer
image: appwrite/docker-altair:0.0.1
restart: unless-stopped
networks:
- appwrite
ports:
- 9506:3000
environment:
- API_URL=http://localhost/v1/graphql
image: npalm/graphiql
- SERVER_URL=http://localhost/v1/graphql
# Dev Tools End ------------------------------------------------------------------------------------------
networks:
gateway:

View file

@ -89,7 +89,7 @@ class Builder {
$fields = [];
$type = null;
foreach ($rules as $key => $props) {
$keyWithoutSpecialChars = str_replace('$', '', $key);
$keyWithoutSpecialChars = str_replace('$', '_', $key);
if (isset(self::$typeMapping[$props['type']])) {
$type = self::$typeMapping[$props['type']];
} else {