diff --git a/packages/updatePrescriptionStatus/src/updatePrescriptionStatus.ts b/packages/updatePrescriptionStatus/src/updatePrescriptionStatus.ts index 0c5b65a2c..82fdd990e 100644 --- a/packages/updatePrescriptionStatus/src/updatePrescriptionStatus.ts +++ b/packages/updatePrescriptionStatus/src/updatePrescriptionStatus.ts @@ -68,7 +68,6 @@ const lambdaHandler = async (event: APIGatewayProxyEvent): Promise ): void { + responseEntries.length = 0 + e.CancellationReasons?.forEach((reason) => { if (reason.Item?.TaskID?.S) { const taskId = reason.Item.TaskID.S