Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 9f777d7

Browse files
authored
fix(lambda-at-edge): await external API rewrite (#1232)
1 parent 787197b commit 9f777d7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ module.exports = {
3939
],
4040
plugins: ["promise"],
4141
rules: {
42+
"require-await": "error",
4243
"promise/catch-or-return": "error"
4344
}
4445
},

packages/libs/lambda-at-edge/src/api-handler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const handler = async (
3232

3333
if (external) {
3434
const { path } = external;
35-
createExternalRewriteResponse(path, req, res, request.body?.data);
35+
await createExternalRewriteResponse(path, req, res, request.body?.data);
3636
}
3737

3838
const response = await responsePromise;

0 commit comments

Comments
 (0)