amazon-archives / aws-serverless-auth-reference-app

Serverless reference app and backend API, showcasing authentication and authorization patterns using Amazon Cognito, Amazon API Gateway, AWS Lambda, and AWS IAM.
Other
754 stars 193 forks source link

lambda wrapper functions break any Promise returns #47

Closed dscowan closed 6 years ago

dscowan commented 6 years ago

Trying to use a promise object in a method in bookings.js will error with then undefined. This appears to be casued by the wrapper.wrapFunction which has its own then function.