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:
parent
a489d5a3d8
commit
6c624d12a2
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue