diff --git a/src/events/http/Endpoint.js b/src/events/http/Endpoint.js index 9aeadc3a8..c3e03f0d3 100644 --- a/src/events/http/Endpoint.js +++ b/src/events/http/Endpoint.js @@ -108,7 +108,7 @@ export default class Endpoint { // loosely based on: // https://github.com/serverless/serverless/blob/v1.59.2/lib/plugins/aws/package/compile/events/apiGateway/lib/validate.js#L380 #getIntegration(http) { - const { integration, async: isAsync } = http + const { integration } = http if (integration) { const normalizedIntegration = integration.toUpperCase().replace('-', '_') if (normalizedIntegration === 'LAMBDA') { diff --git a/src/events/http/lambda-events/LambdaProxyIntegrationEvent.js b/src/events/http/lambda-events/LambdaProxyIntegrationEvent.js index 35c340182..eccb92217 100644 --- a/src/events/http/lambda-events/LambdaProxyIntegrationEvent.js +++ b/src/events/http/lambda-events/LambdaProxyIntegrationEvent.js @@ -33,7 +33,7 @@ export default class LambdaProxyIntegrationEvent { path, stageVariables, routeKey, - isAsync = false, + isAsync, additionalRequestContext, v3Utils, ) { @@ -42,7 +42,7 @@ export default class LambdaProxyIntegrationEvent { this.#request = request this.#stage = stage this.#stageVariables = stageVariables - this.#isAsync = isAsync + this.#isAsync = isAsync || false this.#additionalRequestContext = additionalRequestContext || {} if (v3Utils) { this.log = v3Utils.log