Skip to content

Commit

Permalink
Fix STACK-BACKEND-2J
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Jan 14, 2025
1 parent 6272cdf commit 0f55c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/prisma-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function retryTransaction<T>(fn: (...args: Parameters<Parameters<ty
try {
return Result.ok(await prismaClient.$transaction(fn));
} catch (e) {
if (e instanceof Prisma.PrismaClientKnownRequestError) {
if (e instanceof Prisma.PrismaClientKnownRequestError || e instanceof Prisma.PrismaClientUnknownRequestError) {
// retry
return Result.error(e);
}
Expand Down

0 comments on commit 0f55c18

Please sign in to comment.