0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🎨 Include archived offers in members filter (#19756)

refs
https://linear.app/tryghost/issue/ENG-19/allow-archived-offers-to-be-used-in-member-filtering

- Removed the filter to only include Active Offers so that we can also
filter memebers that previously redeemed archived offers.
This commit is contained in:
Ronald Langeveld 2024-02-29 08:31:23 +02:00 committed by GitHub
parent a489d5a3d8
commit 6c624d12a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -613,7 +613,7 @@ export default class MembersFilter extends Component {
@task({drop: true})
*fetchOffers() {
const response = yield this.store.query('offer', {filter: 'status:active'});
const response = yield this.store.query('offer', {limit: 'all'});
this.offers = response;
return response;
}

View file

@ -69,7 +69,7 @@ export default class OffersSegmentSelect extends Component {
// fetch all offers with count
// TODO: add `include: 'count.members` to query once API supports
const offers = yield this.store.query('offer', {filter: 'status:active'});
const offers = yield this.store.query('offer', {limit: 'all'});
this.offers = offers;
if (offers.length > 0) {
const offersGroup = {