aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/oauth/oauth-token.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-11-19 17:08:18 +0100
committerChocobozzz <me@florianbigard.com>2018-11-19 17:08:18 +0100
commitd175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e (patch)
tree1c313c3a3e0680101516dea3a787cd307006c76d /server/models/oauth/oauth-token.ts
parent0b2f03d3712f438f67eccf86b67acd047284f9b4 (diff)
downloadPeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.tar.gz
PeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.tar.zst
PeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.zip
Cleanup tests imports
Diffstat (limited to 'server/models/oauth/oauth-token.ts')
-rw-r--r--server/models/oauth/oauth-token.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/oauth/oauth-token.ts b/server/models/oauth/oauth-token.ts
index ecf846821..08d892da4 100644
--- a/server/models/oauth/oauth-token.ts
+++ b/server/models/oauth/oauth-token.ts
@@ -1,5 +1,5 @@
1import { 1import {
2 AfterDelete, 2 AfterDestroy,
3 AfterUpdate, 3 AfterUpdate,
4 AllowNull, 4 AllowNull,
5 BelongsTo, 5 BelongsTo,
@@ -126,7 +126,7 @@ export class OAuthTokenModel extends Model<OAuthTokenModel> {
126 OAuthClients: OAuthClientModel[] 126 OAuthClients: OAuthClientModel[]
127 127
128 @AfterUpdate 128 @AfterUpdate
129 @AfterDelete 129 @AfterDestroy
130 static removeTokenCache (token: OAuthTokenModel) { 130 static removeTokenCache (token: OAuthTokenModel) {
131 return clearCacheByToken(token.accessToken) 131 return clearCacheByToken(token.accessToken)
132 } 132 }