Ghost/ghost/email-service/test
Steve Larson 342b5512fc
🐛 Fix edge case resulting in duplicate emails for some recipients (#18941)
refs https://ghost.slack.com/archives/CTH5NDJMS/p1699359241142969

It's possible for `ObjectIDs` to have only numeric characters. We were
previously letting the type be inferred, which created a very rare but
possible edge case where the last recipient of an email batch had a
numeric ObjectID, resulting in a numeric comparison against alphanumeric
`ObjectIDs` in the database.
- updated the filter to add `'`'s around the `lastId` parameter
- updated tests to check for the type of the id filter parameter value
- can't fully test for numeric object IDs using what we have because
javascript cannot handle numerics of that size; may be able to look at
using fixture data loaded directly into the db
2023-11-10 01:24:56 +00:00
..
utils
.eslintrc.js
batch-sending-service.test.js 🐛 Fix edge case resulting in duplicate emails for some recipients (#18941) 2023-11-10 01:24:56 +00:00
email-controller.test.js
email-event-processor.test.js
email-event-storage.test.js
email-renderer.test.js
email-segmenter.test.js
email-service.test.js
mailgun-email-provider.test.js
sending-service.test.js