Skip to content

Commit

Permalink
fix(prisma): replace select with include for user relation query
Browse files Browse the repository at this point in the history
  • Loading branch information
mcorbelli committed Dec 28, 2024
1 parent 2651afc commit f06e11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapter-prisma/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function PrismaAdapter(
async getUserByAccount(provider_providerAccountId) {
const account = await p.account.findUnique({
where: { provider_providerAccountId },
select: { user: true },
include: { user: true },
})
return (account?.user as AdapterUser) ?? null
},
Expand Down

0 comments on commit f06e11e

Please sign in to comment.