0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/services/members
Fabien O'Carroll fa327a7a85 Passed Settings model to @tryghost/members-api
refs https://github.com/TryGhost/Team/issues/637
refs https://github.com/TryGhost/Team/issues/591

We need to run migrations which will update the `portal_plans` setting
to use id's rather than names. This migration relies on the
`stripe_prices` table being complete populated. The migration to
populate the `stripe_prices` table was not added as a "normal"
migration because it needs to access the Stripe API over the network.
Any migrations that rely on this are unable to be run in a "normal"
migration as that cannot be sure that the database is in the correct
state.

The `portal_plans` setting migration is therefore run in code, and needs
access to the Settings model in order to modify the database.
2021-05-03 13:59:13 +01:00
..
emails Added extra settings to member auth emails (#12238) 2020-10-01 12:31:36 +05:30
importer Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
stats Added jsdoc to MembersStats class 2021-01-14 12:59:17 +13:00
api.js Passed Settings model to @tryghost/members-api 2021-05-03 13:59:13 +01:00
config.js Updated members allowSelfSignup() to take portal plans into account (#12909) 2021-04-27 16:22:43 +01:00
content-gating.js 🐛 Fixed complimentary members' content gating (#12761) 2021-03-15 19:13:48 +13:00
index.js Migrated members_allow_free_signup setting to members_signup_access (#12886) 2021-04-19 16:36:30 +01:00
middleware.js Added members signup access setting to Portal (#12908) 2021-04-27 21:02:22 +05:30
settings.js 🐛 Fixed Admin redirect for newsletter/support email update (#12810) 2021-03-23 11:24:07 +05:30
SingleUseTokenProvider.js Updated magic links to use shorter, single us, longer lived tokens (#12218) 2020-09-18 17:32:18 +01:00
stripe-connect.js Encoded the mode in the Stripe Connect OAuth state 2020-06-10 14:06:57 +02:00
utils.js Fixed paid flag on members 2021-02-25 14:26:41 +00:00