Skip to content

Commit

Permalink
chore: specify RepeatableRead and Serializable for isolationLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Jul 23, 2024
1 parent 47cace7 commit e4b647c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/service/prismaClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Prisma, PrismaClient } from '@prisma/client';
export const prismaClient = new PrismaClient();

export const transaction = <U>(
isolationLevel: Prisma.TransactionIsolationLevel,
isolationLevel: 'RepeatableRead' | 'Serializable',
fn: (tx: Prisma.TransactionClient) => Promise<U>,
retry = 3,
): Promise<U> =>
Expand Down

0 comments on commit e4b647c

Please sign in to comment.