We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9090dfc commit 07de0b6Copy full SHA for 07de0b6
1 file changed
packages/updatePrescriptionStatus/src/utils/sqsClient.ts
@@ -236,6 +236,7 @@ export async function pushPrescriptionToNotificationSQS(
236
.filter(({current, previous}) => {
237
if (!previous) return true // no previous item (or hit an error getting one) -> treat as changed
238
if (previous.PostDatedLastModifiedSetAt) return true // previous was post-dated -> treat as changed
239
+ if (current.PostDatedLastModifiedSetAt) return true // current is post-dated -> treat as changed
240
return norm(current.Status) !== norm(previous.Status)
241
})
242
.map(({current}) => current)
0 commit comments