0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Updated counts in (re)schedule notification

refs https://github.com/TryGhost/Team/issues/1538
This commit is contained in:
Simon Backx 2022-04-21 11:16:19 +02:00 committed by Matt Hanley
parent 38bc4705cd
commit 1beadb5304

View file

@ -1065,7 +1065,7 @@ export default class EditorController extends Controller {
let description = emailOnly ? ['Will be sent'] : ['Will be published'];
if (emailRecipientFilter && emailRecipientFilter !== 'none') {
const recipientCount = await this.membersCountCache.countString(`subscribed:true+(${emailRecipientFilter})`);
const recipientCount = await this.membersCountCache.countString(`newsletters.status:active+(${emailRecipientFilter})`);
description.push(`${!emailOnly ? 'and delivered ' : ''}to <span><strong>${recipientCount}</strong></span>`);
}