From d741cd9fba8d24d8848c47e3cc095044ba5f9f11 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Mon, 9 Sep 2019 13:44:50 +0800 Subject: [PATCH] Returned fully hydrated member object when creating member no-issue --- ghost/members-api/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/members-api/index.js b/ghost/members-api/index.js index f373d7c52b..9b688ab88b 100644 --- a/ghost/members-api/index.js +++ b/ghost/members-api/index.js @@ -71,7 +71,8 @@ module.exports = function MembersApi({ if (member) { return member; } - return users.create({email}); + await users.create({email}); + return getMemberIdentityData(email); } async function getMemberIdentityData(email){ return users.get({email});