aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account
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/account
parent0b2f03d3712f438f67eccf86b67acd047284f9b4 (diff)
downloadPeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.tar.gz
PeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.tar.zst
PeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.zip
Cleanup tests imports
Diffstat (limited to 'server/models/account')
-rw-r--r--server/models/account/user.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts
index 34aafa1a7..1843603f1 100644
--- a/server/models/account/user.ts
+++ b/server/models/account/user.ts
@@ -1,6 +1,6 @@
1import * as Sequelize from 'sequelize' 1import * as Sequelize from 'sequelize'
2import { 2import {
3 AfterDelete, 3 AfterDestroy,
4 AfterUpdate, 4 AfterUpdate,
5 AllowNull, 5 AllowNull,
6 BeforeCreate, 6 BeforeCreate,
@@ -179,7 +179,7 @@ export class UserModel extends Model<UserModel> {
179 } 179 }
180 180
181 @AfterUpdate 181 @AfterUpdate
182 @AfterDelete 182 @AfterDestroy
183 static removeTokenCache (instance: UserModel) { 183 static removeTokenCache (instance: UserModel) {
184 return clearCacheByUserId(instance.id) 184 return clearCacheByUserId(instance.id)
185 } 185 }