aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account/user.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-21 14:28:06 +0100
committerChocobozzz <me@florianbigard.com>2019-02-21 14:40:10 +0100
commit9b39106d5757caf221a88e42e05167a6fac479c6 (patch)
treece3ac7907135d82ad13abf648eff4f963448227e /server/models/account/user.ts
parent374c1db98cf22527f5b362c70d3c50e3be4c8885 (diff)
downloadPeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.tar.gz
PeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.tar.zst
PeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.zip
findById -> findByPk
Diffstat (limited to 'server/models/account/user.ts')
-rw-r--r--server/models/account/user.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts
index 017a96657..8aff9f497 100644
--- a/server/models/account/user.ts
+++ b/server/models/account/user.ts
@@ -341,7 +341,7 @@ export class UserModel extends Model<UserModel> {
341 } 341 }
342 342
343 static loadById (id: number) { 343 static loadById (id: number) {
344 return UserModel.findById(id) 344 return UserModel.findByPk(id)
345 } 345 }
346 346
347 static loadByUsername (username: string) { 347 static loadByUsername (username: string) {