From ea237ebceedb801d72de27f6f4f6a2aa1386edb4 Mon Sep 17 00:00:00 2001 From: Aileen Nowak Date: Thu, 7 Apr 2022 10:16:38 -0400 Subject: [PATCH] Used designated source `importer` for members event table no issue Using a designated source for members being added within the `importer` context will better describe the source in our members event table. It's more consistent with the usage of the other possible sources. --- ghost/members-api/lib/repositories/member.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ghost/members-api/lib/repositories/member.js b/ghost/members-api/lib/repositories/member.js index c97e02245d..42be5781b7 100644 --- a/ghost/members-api/lib/repositories/member.js +++ b/ghost/members-api/lib/repositories/member.js @@ -228,8 +228,10 @@ module.exports = class MemberRepository { source = 'import'; } else if (context.internal) { source = 'system'; - } else if (context.user || context.importer) { + } else if (context.user) { source = 'admin'; + } else if (context.importer) { + source = 'importer'; } else if (context.api_key) { source = 'api'; } else {