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:
parent
5a4efd2eec
commit
21123d4061
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue