backend: fix graphql servlet

This commit is contained in:
0x1eef 2024-01-10 21:15:37 -03:00
parent 711124065d
commit ac9d611107

View file

@ -8,7 +8,7 @@ class Twenty::Servlet::GraphQL < Twenty::Servlet
variables: params['variables'], variables: params['variables'],
context: {} context: {}
) )
res.headers['content_type'] = 'application/json' res['content_type'] = 'application/json'
res.status = 200 res.status = 200
res.body = result.to_json res.body = result.to_json
end end