Skip to content

Commit d07f669

Browse files
authoredAug 22, 2021
Adds correct value in lambda response
`sendRes` was incorrectly returning `loyaltylevel` instead of `body`. `loyaltylevel` was not available in this scope and thus would error out.
1 parent a781e50 commit d07f669

File tree

1 file changed

+2
-2
lines changed
  • the-simple-graphql-service/python/lambda_fns

1 file changed

+2
-2
lines changed
 

‎the-simple-graphql-service/python/lambda_fns/loyalty.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const sendRes = (status, body) => {
1313
headers: {
1414
"Content-Type": "application/json"
1515
},
16-
level: loyaltylevel
16+
level: body
1717
};
1818
return response;
19-
};
19+
};

0 commit comments

Comments
 (0)
Please sign in to comment.