From e013362ac44cead480ae844521f810387a016682 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Tue, 18 Jun 2024 18:01:13 -1000 Subject: [PATCH] fix(api): :passport_control: Fix two variables with the same name causing incorrect data to be returned --- server/api/api/v1/sso/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/api/v1/sso/index.ts b/server/api/api/v1/sso/index.ts index 64ce5c92..764cf57a 100644 --- a/server/api/api/v1/sso/index.ts +++ b/server/api/api/v1/sso/index.ts @@ -66,7 +66,7 @@ export default (app: Hono) => case "GET": { // Get all linked accounts const accounts = await db.query.OpenIdAccounts.findMany({ - where: (user, { eq }) => eq(user.userId, user.id), + where: (User, { eq }) => eq(User.userId, user.id), }); return jsonResponse(