From 733135d3fff691bec8c2e52a1729ed3defc61901 Mon Sep 17 00:00:00 2001 From: Michael Barrett Date: Thu, 10 Aug 2023 18:18:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20incorrect=20newsletter?= =?UTF-8?q?=20subscriber=20count=20on=20dashboard=20(#17683)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- ghost/admin/app/services/dashboard-stats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/admin/app/services/dashboard-stats.js b/ghost/admin/app/services/dashboard-stats.js index 52781715f9..7ab37b65f0 100644 --- a/ghost/admin/app/services/dashboard-stats.js +++ b/ghost/admin/app/services/dashboard-stats.js @@ -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 = {