Ghost/ghost/members-api/lib/repositories
Simon Backx e7786ca482
🐛 Fixed removing comped subscriptions for members with active subs (#15332)
fixes https://github.com/TryGhost/Team/issues/1859

**Problem:**
When for some reason a member has an active subscription (or legacy comped subscription) for product A, and a comped subscription for product B. You cannot remove comped subscription B.

**Fixed by:**
Updating the API to allow more flexible product changes on members.
- Allow the removal of (comped) products on a member, as long as that product doesn't have a related subscription
- (still) allow the addition of comped products to a member, as long as that member doesn't have other active subscriptions. This matches the existing behaviour, but now this is only checked for added products.
- Includes tests for these edge cases
2022-08-30 17:36:52 +02:00
..
event.js Added member attributions to activity feed (#15283) 2022-08-24 11:17:28 -04:00
member.js 🐛 Fixed removing comped subscriptions for members with active subs (#15332) 2022-08-30 17:36:52 +02:00
product.js Restricted existing prices to those that are active (#15195) 2022-08-08 16:18:07 +01:00