Skip to content

Commit 501ec56

Browse files
authored
remove the workaround for no-misused-promises as it broke lambdas execution (#2444)
* remove the workaround for no-misused-promises as it broke lambdas execution * add changeset * update changeset
1 parent 2a028ce commit 501ec56

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@aws-amplify/backend-function': patch
3+
'@aws-amplify/backend': patch
4+
---
5+
6+
remove the workaround for no-misused-promises as it broke lambdas execution

packages/backend-function/src/lambda-shims/invoke_ssm_shim.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ await internalAmplifyFunctionResolveSsmParams();
99
const SSM_PARAMETER_REFRESH_MS = 1000 * 60;
1010

1111
setInterval(
12-
void (async () => {
12+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
13+
async () => {
1314
try {
1415
await internalAmplifyFunctionResolveSsmParams();
1516
} catch (error) {
@@ -21,6 +22,6 @@ setInterval(
2122
// Do nothing if logging fails
2223
}
2324
}
24-
}),
25+
},
2526
SSM_PARAMETER_REFRESH_MS
2627
);

0 commit comments

Comments
 (0)