chore: when performing read operations we should use Promise.all, not $transaction (#24084)

This commit is contained in:
Alex van Andel authored and GitHub committed 2025-09-25 17:56:10 +00:00
1 parent 82dfca8272
commit 0ac460fce3
3 files changed
+3 -3

No files matched your search

@@ -58,7 +58,7 @@ export async function getUserHandler({ input, ctx }: AdminVerifyOptions) {
}
// get requested user from database and ensure they are in the same organization
const [requestedUser, membership, teams] = await prisma.$transaction([
const [requestedUser, membership, teams] = await Promise.all([
prisma.user.findUnique({
where: { id: input.userId },
select: {