Ghost/ghost/core/test/integration
Simon Backx 69228b2947
🐛 Fixed race condition when sending email (#15829)
refs https://github.com/TryGhost/Team/issues/2246

- This change helps avoid race conditions due to a lack of a transaction
in the email job. It also moves the status check before creating the
email batches (can take a while) to prevent other timing issues in case
the job got scheduled multiple times.
- Sets the patch option to true when changing the status of an email
batch. If we don't do this, the bookshelf-relations plugin might try to
save relations too. This could have caused a 'no rows updated' error.
- Added a test that tests if the email job can only run once
- Added logging to batching logic
2022-11-17 13:36:52 +01:00
..
exporter Added subscriptions table 2022-10-13 11:19:13 +07:00
importer Removed Bluebird from importer 2022-11-09 16:14:37 +00:00
migrations Added permissions for link edit endpoints (#15664) 2022-10-20 09:11:26 +05:30
services 🐛 Fixed race condition when sending email (#15829) 2022-11-17 13:36:52 +01:00
settings Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
url_service.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00