mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
bee1d4793d
no-issue Writing code outside of Ghost which deals with the models is currently done by passing the models which are needed to the external module, rather than the instance of ghostBookshelf. This does not give us a way to create transaction to run queries in. This method is designed as a simple way to give all models the power to create a transaction for themselves. This will be used in @tryghost/members-api for example to ensure that failures in communication with the Stripe API will rollback the related inserts in the database. |
||
---|---|---|
.. | ||
client@efc3dc259b | ||
frontend | ||
server | ||
shared | ||
app.js | ||
boot.js | ||
bridge.js |