0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/server/models
Daniel Lockyer 8fcb57bd6a Disabled new Bookshelf fetch behaviour across models
- as per https://github.com/bookshelf/bookshelf/wiki/Migrating-from-0.15.1-to-1.0.0#default-to-require-true-on-modelfetch-and-collectionfetchone, models will now default to `{require:true}` during a fetch, which changes how Bookshelf will respond when a models yields no results
- instead of passing a `null` result, it will reject with an error, so we'd need to switch to `.catch`ing everything
- our code is set up to handle all these null results and switching style is not currently on the cards so we want to use the existing behaviour for now
- to enable this, the `requireFetch` option needs to be added to the model definitions
2021-09-10 16:59:11 +01:00
..
base Disabled new Bookshelf fetch behaviour across models 2021-09-10 16:59:11 +01:00
relations
action.js
api-key.js
author.js
benefit.js Added Benefit model 2021-06-29 16:53:15 +01:00
email-batch.js
email-recipient.js
email.js
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
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 Fixed 'sent' status setting when publishing a post 2021-08-26 22:25:45 +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
session.js
settings.js Moved labs utlity to shared 2021-07-08 09:05:41 +01:00
single-use-token.js
snippet.js
stripe-customer-subscription.js
stripe-price.js
stripe-product.js
tag-public.js
tag.js
user.js
webhook.js