From 0ede390fefb4aae460deccc09755af85e5af6002 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 17 Apr 2019 14:32:59 +0900 Subject: Refactor --- src/server/api/private/signin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/api/private') 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!); -- cgit v1.2.3-freya