diff --git a/core/server/services/members/index.js b/core/server/services/members/index.js index e605e6c1c1..53daf7fb1b 100644 --- a/core/server/services/members/index.js +++ b/core/server/services/members/index.js @@ -44,9 +44,7 @@ const membersService = { cookieKeys: [settingsCache.get('theme_session_secret')], cookieName: 'ghost-members-ssr', cookieCacheName: 'ghost-members-ssr-cache', - // This is passed as a function so that updates to the instance - // are picked up in the ssr module - membersApi: () => membersApi + getMembersApi: () => membersService.api }) };