Closed Daimon-EuDaimon closed 5 months ago
I propose this solution,
on src/flat-transaction.ts:48 replace
return tx;
with
return tx.catch((e: any) => e[Symbol.for("prisma.client.extension.rollback")] ? undefined : tx);
Hey! I have the same problem. There are some issues with handling errors..
I'll look into it
Fixed in 1.1.1
When an error occurs in a transaction, it is rolled back and the object
{ Symbol(prisma.client.extension.rollback): true }
is thrown. I'd like to receive the error that caused the transaction to be rolled back.