Ghost/ghost/members-api/lib
Simon Backx 7fa442516c Updated member bread service to return member subscription offers from offer_id column (#392)
refs https://github.com/TryGhost/Team/issues/1520

- Instead of doing the matching of the offers and subscriptions by looking at the offer redemptions, we can now look at the offer_id from subscriptions.
- This also fixes an issue where we don't attach the offer object to subscriptions in the members' browse method
- Updated browse behaviour to match the read behaviour of members (product relation needs to get loaded because it is missing in member.products if the subscription is expired).

Tests in https://github.com/TryGhost/Ghost/pull/14515
2022-04-20 11:10:41 +02:00
..
controllers Handled newsletters preference for free members signup 2022-04-13 15:00:31 +05:30
repositories Updated offer_id matching logic to use stripe_coupon_id instead of metadata (#390) 2022-04-19 11:21:48 +02:00
services Updated member bread service to return member subscription offers from offer_id column (#392) 2022-04-20 11:10:41 +02:00
MembersAPI.js Stored offer_id in subscriptions (#389) 2022-04-19 09:15:33 +02:00