mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
🐛 Fixed incorrect newsletter subscriber count on dashboard (#17683)
fixes https://github.com/TryGhost/Product/issues/3714 The dashboard was showing the total number of subscribers, but not taking into account members who have disabled emails. This commit fixes that.
This commit is contained in:
parent
f983e93090
commit
733135d3ff
1 changed files with 2 additions and 2 deletions
|
@ -693,8 +693,8 @@ export default class DashboardStatsService extends Service {
|
|||
}
|
||||
|
||||
const [paid, free] = yield Promise.all([
|
||||
this.membersCountCache.count('newsletters.status:active+status:-free'),
|
||||
this.membersCountCache.count('newsletters.status:active+status:free')
|
||||
this.membersCountCache.count('newsletters.status:active+status:-free+email_disabled:0'),
|
||||
this.membersCountCache.count('newsletters.status:active+status:free+email_disabled:0')
|
||||
]);
|
||||
|
||||
this.newsletterSubscribers = {
|
||||
|
|
Loading…
Add table
Reference in a new issue