Skip to content

Commit d9fcfce

Browse files
committed
Forgot to await
1 parent 6bcd216 commit d9fcfce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/updatePrescriptionStatus/src/utils/sqsClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export async function pushPrescriptionToNotificationSQS(
6666
}
6767

6868
// Only allow through sites and systems that are allowedSitesAndSystems
69-
const allowedSitesAndSystemsData = checkSiteOrSystemIsNotifyEnabled(data)
69+
const allowedSitesAndSystemsData = await checkSiteOrSystemIsNotifyEnabled(data)
7070

7171
// SQS batch calls are limited to 10 messages per request, so chunk the data
7272
const batches = chunkArray(allowedSitesAndSystemsData, 10)

0 commit comments

Comments
 (0)