Ghost/ghost/members-api/lib
Rishabh aad662267c Added migration to remove invalid subscriptions
closes https://github.com/TryGhost/Team/issues/660

All subscriptions in Ghost are expected to have a corresponding price details in `stripe_price` table, which is used to determine the Stripe price a subscription is on. In some edge cases, specially before we started deleted old Stripe data during Stripe disconnect, it's possible that a subscription exists in DB without having a corresponding Stripe price in the DB. These subscriptions are not active for the connected Stripe account, and are save to remove. Going forward, all existing subscriptions with connected account will be removed when disconnecting stripe so we shouldn't have invalid subscriptions in DB in future.

The goal of this migration is to clean all such subscriptions from the DB to avoid any issues around missing price with invalid subscriptions.
2021-07-14 20:12:39 +05:30
..
controllers Fixed incorrect import path 2021-07-14 20:01:29 +05:30
repositories Removed usage of raw Error class 2021-07-14 14:17:38 +01:00
services Removed usage of raw Error class 2021-07-14 14:17:38 +01:00
common.js Removed used of ghost-ignition dependency 2021-06-29 21:43:05 +01:00
migrations.js Added migration to remove invalid subscriptions 2021-07-14 20:12:39 +05:30