Skip to content

Commit e564ec1

Browse files
committed
Added missing await
1 parent 0338599 commit e564ec1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lambdas/allocation/src/allocator.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ export default function createAllocator(deps: Deps): SNSHandler {
1717
for (const sqsCommand of sqsCommands) {
1818
deps.logger.info({
1919
description: "Placing message on queue",
20-
// MessageGroupId: sqsCommand.MessageGroupId,
21-
Message: JSON.stringify(sqsCommand),
20+
MessageGroupId: sqsCommand.input.MessageGroupId,
2221
});
23-
deps.sqsClient.send(sqsCommand);
22+
await deps.sqsClient.send(sqsCommand);
2423
}
2524
};
2625
}

0 commit comments

Comments
 (0)