diff options
Diffstat (limited to 'server/models/account/user.ts')
-rw-r--r-- | server/models/account/user.ts | 2 |
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) { |