Ghost/core/server/models/plugins
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
..
collision.js Import lib/common only 2017-12-12 10:28:13 +01:00
filter.js Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
include-count.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
index.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
pagination.js Import lib/common only 2017-12-12 10:28:13 +01:00
transaction-events.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00