feat: fixed some issues and updated docker-compose
This commit is contained in:
parent
b47e57b1a0
commit
457ab656e7
|
@ -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')
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue