summaryrefslogtreecommitdiff
path: root/src/server/api/private
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/private')
-rw-r--r--src/server/api/private/signin.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/private/signin.ts b/src/server/api/private/signin.ts
index 676546f2aa..02361a139d 100644
--- a/src/server/api/private/signin.ts
+++ b/src/server/api/private/signin.ts
@@ -46,7 +46,7 @@ export default async (ctx: Koa.BaseContext) => {
return;
}
- const profile = await UserProfiles.findOne({ userId: user.id }).then(ensure);
+ const profile = await UserProfiles.findOne(user.id).then(ensure);
// Compare password
const same = await bcrypt.compare(password, profile.password!);