Ghost/ghost/members-api/lib
Simon Backx 3b8fb3cedf
Added support for ignoring migrated (duplicate) subscriptions (#19902)
refs KTLO-19

When we need to migrate subscriptions from a platform with platform
fees, we need to recreate the subscriptions. That can cause the same
subscription to be attached multiple times to the same member in Ghost.

This is a problem because all MRR, subscriptions and cancellations stats
are no longer correct. Ghost will add a MRR event for the duplicated
subscription from the start time, so there is a sudden peak in MRR and a
dip after the migration because all those duplicate subscriptions are
suddenly cancelled 'today'.

The migrator tool adds a ghost_migrated_to metadata field to the old
subscription. Ghost can use this to detect the old subscription and
delete the subscription and corresponding events.
2024-03-27 10:32:32 +01:00
..
controllers Fixed clearing invalid sender_email when changing newsletter sender_reply_to (#19555) 2024-01-23 16:10:11 +01:00
repositories Added support for ignoring migrated (duplicate) subscriptions (#19902) 2024-03-27 10:32:32 +01:00
services 🔒 Added support for logging out members on all devices (#18935) 2023-11-15 17:10:28 +01:00
members-api.js 🔒 Added support for logging out members on all devices (#18935) 2023-11-15 17:10:28 +01:00