1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Cleanup tests imports

This commit is contained in:
Chocobozzz 2018-11-19 17:08:18 +01:00
parent 0b2f03d371
commit d175a6f7ab
No known key found for this signature in database
GPG key ID: 583A612D890159BE
27 changed files with 41 additions and 47 deletions

View file

@ -1,5 +1,5 @@
import {
AfterDelete,
AfterDestroy,
AfterUpdate,
AllowNull,
BelongsTo,
@ -126,7 +126,7 @@ export class OAuthTokenModel extends Model<OAuthTokenModel> {
OAuthClients: OAuthClientModel[]
@AfterUpdate
@AfterDelete
@AfterDestroy
static removeTokenCache (token: OAuthTokenModel) {
return clearCacheByToken(token.accessToken)
}