Skip to content

Commit

Permalink
syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Oct 2, 2024
1 parent f9f55e1 commit 3f48a09
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/adapter-prisma/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ export function PrismaAdapter(
})
return (account?.user as AdapterUser) ?? null
},
updateUser: ({ id, ...data }) => {
return p.user.update({
updateUser: ({ id, ...data }) =>
p.user.update({
where: { id },
...stripUndefined(data),
}) as Promise<AdapterUser>
},
}) as Promise<AdapterUser>,
deleteUser: (id) =>
p.user.delete({ where: { id } }) as Promise<AdapterUser>,
linkAccount: (data) =>
Expand Down

0 comments on commit 3f48a09

Please sign in to comment.