0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed linting error

This commit is contained in:
Simon Backx 2022-04-26 19:33:12 +02:00
parent a82d0f499d
commit 27f48e743b

View file

@ -349,7 +349,7 @@ module.exports = class MemberRepository {
if (!memberData.newsletters) {
if (memberData.subscribed === false) {
memberData.newsletters = [];
} else if (memberData.subscribed === true && !existingNewsletters.find((n) => n.status === 'active')) {
} else if (memberData.subscribed === true && !existingNewsletters.find(n => n.status === 'active')) {
const browseOptions = _.pick(options, 'transacting');
memberData.newsletters = await this.getSubscribeOnSignupNewsletters(browseOptions);
}