Skip to content

Commit b41b1f4

Browse files
Add await
1 parent a5f1603 commit b41b1f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambdas/api-handler/src/handlers/patch-letter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function createPatchLetterHandler(deps: Deps): APIGatewayProxyHandler {
4141
throw new ValidationError(ApiErrorDetail.InvalidRequestLetterIdsMismatch);
4242
}
4343

44-
enqueueLetterUpdateRequests([letterToUpdate], commonHeadersResult.value.correlationId, deps);
44+
await enqueueLetterUpdateRequests([letterToUpdate], commonHeadersResult.value.correlationId, deps);
4545

4646
return {
4747
statusCode: 202,

0 commit comments

Comments
 (0)