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:
parent
0b2f03d371
commit
d175a6f7ab
27 changed files with 41 additions and 47 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue