fix(api): 🛂 Fix two variables with the same name causing incorrect data to be returned

This commit is contained in:
Jesse Wierzbinski 2024-06-18 18:01:13 -10:00
parent 32538586dc
commit e013362ac4
No known key found for this signature in database

View file

@ -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(