Skip to content

Commit 089ba9d

Browse files
committed
Merge branch 'master' of github.com:graphcool/graphql-playground
2 parents 90af813 + 1d4d8a5 commit 089ba9d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/graphql-playground-middleware-lambda/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-playground-middleware-lambda",
3-
"version": "1.3.6",
3+
"version": "1.3.7",
44
"homepage": "https://github.com/graphcool/graphql-playground/tree/master/packages/graphql-playground-middleware-lambada",
55
"description": "GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).",
66
"contributors": [

packages/graphql-playground-middleware-lambda/src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@ import {
99
const { version } = require('../package.json')
1010

1111
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+
) => {
1317
const middlewareOptions: RenderPageOptions = {
1418
...options,
1519
version,
1620
}
17-
const body = renderPlaygroundPage(middlewareOptions)
21+
const body = await renderPlaygroundPage(middlewareOptions)
1822
callback(null, {
1923
statusCode: 200,
2024
headers: {

0 commit comments

Comments
 (0)