0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/models
Fabien 'egg' O'Carroll bee1d4793d
Added static transaction method to base model (#13260)
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.
2021-08-26 19:01:42 +01:00
..
base Added static transaction method to base model (#13260) 2021-08-26 19:01:42 +01:00
relations Improved single author deprecated notices 2021-05-04 17:11:12 +01:00
action.js
api-key.js Extracted Bookshelf actions code to plugin 2021-06-17 12:04:38 +01:00
author.js
benefit.js Added Benefit model 2021-06-29 16:53:15 +01:00
email-batch.js
email-recipient.js
email.js Added ability to send a newsletter to members with a certain label or product (#12932) 2021-05-07 11:56:41 +01:00
index.js Added MemberProductEvent model & relations 2021-08-24 14:44:53 +02:00
integration.js 🔒 Fixed permissible method for Integration Model 2021-07-20 13:43:29 +01:00
invite.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
label.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
member-email-change-event.js
member-login-event.js
member-paid-subscription-event.js
member-payment-event.js
member-product-event.js Added MemberProductEvent model & relations 2021-08-24 14:44:53 +02:00
member-status-event.js Readded support for comped status in event aggregate (#13142) 2021-07-15 15:17:51 +01:00
member-stripe-customer.js
member-subscribe-event.js
member.js Added MemberProductEvent model & relations 2021-08-24 14:44:53 +02:00
mobiledoc-revision.js
permission.js
post.js Added a 'sent' status to post model 2021-08-13 10:06:15 +04:00
posts-meta.js Added email_only column to posts_meta table 2021-08-05 19:44:35 +12:00
product.js Ordered Products by their monthly price by default (#13234) 2021-08-20 14:46:06 +02:00
role.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
session.js 🔒 Added a "reset all passwords" feature (#13005) 2021-06-23 14:54:28 +02:00
settings.js Moved labs utlity to shared 2021-07-08 09:05:41 +01:00
single-use-token.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
snippet.js Fixed no-restricted-require warning for core/shared/url-utils.js 2021-05-25 21:13:57 +01:00
stripe-customer-subscription.js 🐛 Fixed members list not loading (#12930) 2021-05-26 19:52:42 +05:30
stripe-price.js Added models for stripe prices and products 2021-04-12 21:53:59 +05:30
stripe-product.js Added Product, StripeProduct & StripePrice relations (#12877) 2021-04-14 19:20:39 +01:00
tag-public.js
tag.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
user.js Switch to @trghost/validator, remove validator 2021-06-16 08:11:22 +01:00
webhook.js Bumped webhook API defaults to v4 2021-03-02 12:31:52 +13:00