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

🐛 Fixed member count in publish menu not matching subscription status

no issue

- the `subscribed:true` filter was missed in the member count queries when we switched from `<GhMembersSegmentSelect>` to `<GhMembersRecipientSelect>` (https://github.com/TryGhost/Admin/pull/1972)
This commit is contained in:
Kevin Ansfield 2021-06-08 12:27:30 +01:00
parent 4ad305534a
commit e44f18a412

View file

@ -157,10 +157,10 @@ export default class GhMembersRecipientSelect extends Component {
}
yield Promise.all([
this.store.query('member', {filter: 'status:free', limit: 1}).then((res) => {
this.store.query('member', {filter: 'subscribed:true,status:free', limit: 1}).then((res) => {
this.freeMemberCount = res.meta.pagination.total;
}),
this.store.query('member', {filter: 'status:-free', limit: 1}).then((res) => {
this.store.query('member', {filter: 'subscribed:true,status:-free', limit: 1}).then((res) => {
this.paidMemberCount = res.meta.pagination.total;
})
]);