mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix(api): 🛂 Fix two variables with the same name causing incorrect data to be returned
This commit is contained in:
parent
32538586dc
commit
e013362ac4
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue