Ghost/core/server/services/members
Fabien 'egg' O'Carroll 1294e3f92c
Replaced all usage of member models with members-api (#12117)
no-issue

* Added stripeSubscriptions relation to member model

This allows us to fetch the subscriptions for a member via standard
model usage, e.g. `withRelated: ['stripeSubscriptions']` rather than
offloading to loops and `decorateWithSubscriptions` functions, this is
more performant and less non-standard than the existing method.

* Updated serialize methods to match existing format

The current usage of `decorateWithSubscriptions` and the usage of
members throughout the codebase has a subscriptions array on a stripe
object on the member, this ensures that when we serialize members to
JSON that we are using the same format.

There is definitely room to change this in future, but this is an
attempt to create as few breaking changes as possible.

* Installed @tryghost/members-api@0.26.0

This includes the required API changes so that everywhere can use
members-api directly rather than models and/or helper methods
2020-08-12 14:17:44 +01:00
..
emails Fixed email copy for update email template 2020-06-11 18:19:53 +05:30
importer Replaced all usage of member models with members-api (#12117) 2020-08-12 14:17:44 +01:00
api.js Improved handling of Stripe webhooks on boot 2020-07-10 17:43:46 +02:00
config.js 🐛 Fixed Stripe webhooks for subdirectory setups 2020-07-10 17:43:46 +02:00
content-gating.js Added content-gating module to members service 2019-11-05 12:53:14 +07:00
index.js Changed member limit to be DRY & use raw query 2020-07-26 20:49:30 +01:00
limit.js Updated host limit message to be clearer 2020-07-26 20:49:30 +01:00
middleware.js Added publication icon to members site data 2020-07-23 17:04:44 +05:30
settings.js Updated sender email to existing "from-address" (#12044) 2020-07-13 17:57:31 +05:30
stripe-connect.js Encoded the mode in the Stripe Connect OAuth state 2020-06-10 14:06:57 +02:00
utils.js Added member update endpoint with session auth (#11824) 2020-05-20 14:37:58 +05:30