0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Fixed getMemberDataFromSession usage of membersApi

no-issue

Since we allow the membersApi to be a thunk - we must wrap all
references to it in a call to get
This commit is contained in:
Fabien O'Carroll 2019-07-17 18:05:22 +08:00
parent 5a4efd2eec
commit 21123d4061

View file

@ -110,7 +110,7 @@ module.exports = function create(options = EMPTY) {
signed: true
});
return verifyJwt(token).then((claims) => {
return membersApi.getMember(claims.sub, token);
return get(membersApi).getMember(claims.sub, token);
});
} catch (e) {
return Promise.reject(new BadRequestError({