File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
packages/graphql-playground-middleware-lambda Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " graphql-playground-middleware-lambda" ,
3
- "version" : " 1.3.6 " ,
3
+ "version" : " 1.3.7 " ,
4
4
"homepage" : " https://github.com/graphcool/graphql-playground/tree/master/packages/graphql-playground-middleware-lambada" ,
5
5
"description" : " GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration)." ,
6
6
"contributors" : [
Original file line number Diff line number Diff line change @@ -9,12 +9,16 @@ import {
9
9
const { version } = require ( '../package.json' )
10
10
11
11
export default function lambdaPlayground ( options : MiddlewareOptions ) {
12
- return ( event , lambdaContext : lambda . Context , callback : lambda . Callback ) => {
12
+ return async (
13
+ event ,
14
+ lambdaContext : lambda . Context ,
15
+ callback : lambda . Callback ,
16
+ ) => {
13
17
const middlewareOptions : RenderPageOptions = {
14
18
...options ,
15
19
version,
16
20
}
17
- const body = renderPlaygroundPage ( middlewareOptions )
21
+ const body = await renderPlaygroundPage ( middlewareOptions )
18
22
callback ( null , {
19
23
statusCode : 200 ,
20
24
headers : {
You can’t perform that action at this time.
0 commit comments