Fix tokens deletion.

This commit is contained in:
Julien Fontanet 2015-06-15 13:15:12 +02:00
parent 135c2e7a71
commit 3311ded843

View File

@ -438,7 +438,7 @@ export default class Xo extends EventEmitter {
}
async deleteAuthenticationToken (id) {
if (!await this._token.remove(id)) {
if (!await this._tokens.remove(id)) {
throw new NoSuchAuthenticationToken(id)
}
}