Skip to content

Commit

Permalink
fix: user approval
Browse files Browse the repository at this point in the history
  • Loading branch information
ivopr committed Mar 1, 2024
1 parent 5fd99ad commit 15eb5e7
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ export async function approveUser(userId: string) {
active: true,
deleted: false,
userEmailValidation: {
create: {}
connectOrCreate: {
where: {
userId: String(userId)
},
create: {}
}
}
},
include: {
Expand Down

0 comments on commit 15eb5e7

Please sign in to comment.