0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/models/base
Katharina Irrgang fb79f24316
Fixed model events and transactions (#9524)
no issue

- if multiple queries run in a transaction, the model events are triggered before the txn finished
- if the txn rolls back, the events are anyway emitted
- the events are triggered too early
- solution:
  - `emitChange` needs to detect that a transaction is happening
  - it listens on a txn event to determine if events should be triggered
2018-04-06 18:19:45 +02:00
..
index.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
listeners.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
token.js Bump dependencies (#9513) 2018-03-19 16:27:06 +01:00
utils.js Import lib/common only 2017-12-12 10:28:13 +01:00