Ghost/core
Fabien 'egg' O'Carroll 4fe417bcab
Added Product, StripeProduct & StripePrice relations (#12877)
refs https://github.com/TryGhost/Team/issues/586

We have to use `belongsToMany` because of the way bookshelf relations
work. In reality the relationship is 'hasMany', e.g. a Product has many
Stripe Prices.

These relations are the minimal needed to satisfy the following
relationships without transforming the results. (e.g. flattening the
StripePrices from a list of StripeProducts for a Product)

Product -> StripeProduct:       product.related('stripeProducts')
StripeProduct -> StripePrice:   stripeProduct.related('stripePrices');
Product -> StripePrice:         product.related('stripePrices');
StripePrice -> Product:         stripePrice.related('stripeProduct.product');
2021-04-14 19:20:39 +01:00
..
client@cb58a98350 Updated Ghost-Admin to v4.2.1 2021-04-13 16:23:48 +01:00
frontend Removed hardcoded accent color fallbacks (#12813) 2021-03-24 18:25:26 +05:30
server Added Product, StripeProduct & StripePrice relations (#12877) 2021-04-14 19:20:39 +01:00
shared Bumped @tryghost/members-api & Portal versions (#12836) 2021-04-05 16:29:17 +01:00
app.js Added Sentry to new boot process 2021-02-19 09:20:41 +00:00
boot.js Fixed Ghost hiding config errors behind a crash 2021-03-18 16:32:51 +00:00