Ghost/core/server/services
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
..
adapter-manager Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
auth Extracted core/server/lib/security to @tryghost/security package 2020-08-11 14:06:50 +01:00
bulk-email Improved performance of sending newsletter emails (#12091) 2020-08-06 15:19:39 +02:00
invitations Extracted core/server/lib/security to @tryghost/security package 2020-08-11 14:06:50 +01:00
jobs Added job-manager & wired up shutdown and testmode 2020-08-11 21:31:34 +01:00
mail Updated error name check in GhostMailer 2020-07-21 01:08:19 +05:30
mega Replaced all usage of member models with members-api (#12117) 2020-08-12 14:17:44 +01:00
members Replaced all usage of member models with members-api (#12117) 2020-08-12 14:17:44 +01:00
permissions Improved password reset and session invalidation for "locked" users (#11790) 2020-05-05 19:37:53 +01:00
settings Emitted all settings events on reinit of cache (#12012) 2020-07-06 17:09:43 +02:00
webhooks Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
labs.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
slack.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
xmlrpc.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00