Ghost/ghost/members-api/lib
Simon Backx aaff165a21 Fixed 'labels is not defined on the model' error (#378)
no issue

- When a new member is added via the API, with a stripe_customer_id, the member bread service is passed also with a default option: `withRelated: ['labels']`.
- This option is passed along to the member repository, and further and is also passed when loading relations that don't have a relationship called 'labels'.
- This results in a `labels is not defined on the model` error when you try to create a new member with a stripe customer id.
- Test that found this issue will be added to the Ghost repo.
2022-03-31 16:15:53 +02:00
..
controllers Moved the last of the Stripe config out of Members 2022-02-15 10:57:40 +02:00
repositories Added MemberCancelEvent 2022-03-11 22:44:28 +01:00
services Fixed 'labels is not defined on the model' error (#378) 2022-03-31 16:15:53 +02:00
MembersAPI.js Added MemberCancelEvent 2022-03-11 22:44:28 +01:00