mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
🐛 Fixed suppression list data for emails with plus sign (#16140)
no issue When fetching the suppression list data for emails with a plus sign, the parsing of the NQL filter fails: ```at Child.applyDefaultAndCustomFilters (/Ghost/node_modules/@tryghost/bookshelf-filter/lib/bookshelf-filter.js:66:23) [ghost] email:[simon+test@ghos [ghost] ------------^ [ghost] Expecting 'OR', 'RBRACKET', got 'AND' ```
This commit is contained in:
parent
9ba251238a
commit
2dc9c7dbba
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class MailgunEmailSuppressionList extends AbstractEmailSuppressionList {
|
|||
|
||||
try {
|
||||
const collection = await this.Suppression.findAll({
|
||||
filter: `email:[${emails.join(',')}]`
|
||||
filter: `email:[${emails.map(email => `'${email}'`).join(',')}]`
|
||||
});
|
||||
|
||||
return emails.map((email) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue