From 27f48e743b204259b0090f2825f9c3138a332843 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Tue, 26 Apr 2022 19:33:12 +0200 Subject: [PATCH] Fixed linting error --- ghost/members-api/lib/repositories/member.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/members-api/lib/repositories/member.js b/ghost/members-api/lib/repositories/member.js index 3ce6667b6e..633c8517ec 100644 --- a/ghost/members-api/lib/repositories/member.js +++ b/ghost/members-api/lib/repositories/member.js @@ -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); }