mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
parent
6f1a3e1774
commit
2d95c1b8d7
1 changed files with 3 additions and 3 deletions
|
@ -367,7 +367,7 @@ async function getEmailMemberRows({emailModel, memberSegment, options}) {
|
|||
*/
|
||||
async function createSegmentedEmailBatches({emailModel, options}) {
|
||||
const segments = getSegmentsFromHtml(emailModel.get('html'));
|
||||
let batchIds = [];
|
||||
const batchIds = [];
|
||||
|
||||
if (segments.length) {
|
||||
for (const memberSegment of segments) {
|
||||
|
@ -376,11 +376,11 @@ async function createSegmentedEmailBatches({emailModel, options}) {
|
|||
memberSegment,
|
||||
options
|
||||
});
|
||||
batchIds = emailBatchIds;
|
||||
batchIds.push(emailBatchIds);
|
||||
}
|
||||
} else {
|
||||
const emailBatchIds = await createEmailBatches({emailModel, options});
|
||||
batchIds = emailBatchIds;
|
||||
batchIds.push(emailBatchIds);
|
||||
}
|
||||
|
||||
return batchIds;
|
||||
|
|
Loading…
Add table
Reference in a new issue