fix: prevent print all by empty ids array
This commit is contained in:
parent
74ff6838cc
commit
a05e7fcf63
1 changed files with 6 additions and 3 deletions
|
@ -140,9 +140,12 @@ export abstract class NewsletterHelper {
|
|||
}
|
||||
}
|
||||
|
||||
let members = await MemberService.getAll({ noLimit: true, ids: queryMemberIds });
|
||||
|
||||
return members[0];
|
||||
if (queryMemberIds.length == 0) {
|
||||
return [];
|
||||
} else {
|
||||
let members = await MemberService.getAll({ noLimit: true, ids: queryMemberIds });
|
||||
return members[0];
|
||||
}
|
||||
}
|
||||
|
||||
public static getICSFilePath(newsletter: newsletter) {
|
||||
|
|
Loading…
Add table
Reference in a new issue