fix(user.delete): fix vatesfr/xo-web#901.
This commit is contained in:
parent
faf1508914
commit
6f924d4e83
@ -175,7 +175,7 @@ export default class {
|
||||
return token
|
||||
}
|
||||
|
||||
async _getAuthenticationTokensForUser (userId) {
|
||||
async getAuthenticationTokensForUser (userId) {
|
||||
return this._tokens.get({ user_id: userId })
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user