From fe1e480e2e11f88ffd12aaddd93999bb1256604c Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Thu, 17 Sep 2020 17:55:00 +0100 Subject: [PATCH] Updated getMagicLink call to handle Promise return no-issue refs: https://github.com/TryGhost/Members/commit/63942f03 The above commit updated all magic-link methods to be async, this change ensures that we will handle a Promise return when it's updated in Ghost. `await` has no effect on non Promise return values so it's safe to add this now. --- core/server/api/canary/memberSigninUrls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/api/canary/memberSigninUrls.js b/core/server/api/canary/memberSigninUrls.js index be75328656..1f683c8342 100644 --- a/core/server/api/canary/memberSigninUrls.js +++ b/core/server/api/canary/memberSigninUrls.js @@ -19,7 +19,7 @@ module.exports = { }); } - const magicLink = membersService.api.getMagicLink(model.get('email')); + const magicLink = await membersService.api.getMagicLink(model.get('email')); return { member_id: model.get('id'),