mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03: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
@ -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…
Reference in New Issue
Block a user