Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianBuzzo committed Oct 31, 2024
1 parent 1e0fa22 commit 0e5a934
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,12 @@ export const createClient = (
const queryResults = await prisma.$transaction(
async (tx) => {
if (ctx.transactionId) {
// biome-ignore lint/suspicious/noExplicitAny: This is a private API, so not much we can do about it
(tx as any)[Symbol.for("prisma.client.transaction.id")] =
ctx.transactionId;
} else {
const txId = hashWithPrefix("yates_tx_", JSON.stringify(ctx));
// biome-ignore lint/suspicious/noExplicitAny: This is a private API, so not much we can do about it
(tx as any)[Symbol.for("prisma.client.transaction.id")] =
txId;
}
Expand Down

0 comments on commit 0e5a934

Please sign in to comment.