fix(user.delete): fix vatesfr/xo-web#901.

This commit is contained in:
Julien Fontanet 2016-04-25 14:33:29 +02:00
parent faf1508914
commit 6f924d4e83
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ export default class {
return token
}
async _getAuthenticationTokensForUser (userId) {
async getAuthenticationTokensForUser (userId) {
return this._tokens.get({ user_id: userId })
}
}

View File

@ -86,7 +86,7 @@ export default class {
await this._users.remove(id)
// Remove tokens of user.
this._xo._getAuthenticationTokensForUser(id)
this._xo.getAuthenticationTokensForUser(id)
.then(tokens => {
forEach(tokens, token => {
this._xo._tokens.remove(token.id)