aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/account/user.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts
index 11003645c..534898f96 100644
--- a/server/models/account/user.ts
+++ b/server/models/account/user.ts
@@ -564,17 +564,17 @@ export class UserModel extends Model {
564 static loadByUsername (username: string): Promise<MUserDefault> { 564 static loadByUsername (username: string): Promise<MUserDefault> {
565 const query = { 565 const query = {
566 where: { 566 where: {
567 username: { [Op.iLike]: username } 567 username
568 } 568 }
569 } 569 }
570 570
571 return UserModel.findOne(query) 571 return UserModel.findOne(query)
572 } 572 }
573 573
574 static loadForMeAPI (username: string): Promise<MUserNotifSettingChannelDefault> { 574 static loadForMeAPI (id: number): Promise<MUserNotifSettingChannelDefault> {
575 const query = { 575 const query = {
576 where: { 576 where: {
577 username: { [Op.iLike]: username } 577 id
578 } 578 }
579 } 579 }
580 580