Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
myfunc committed Jun 27, 2024
1 parent e6028a6 commit 3ca2b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ Execute a query out of current transaction context.
const { balance } = await this.getBalance(userId);

// userLog item will be created even if current transaction will be rolled back.
await PrismaTransactional.executeIsolated(async () => {
await this.prisma.userLog.create({ note: `Attempt to add balance for user ${userId} with balance ${balance}`});
await PrismaTransactional.executeIsolated(async (rootClient: PrismaClient) => {
await rootClient.userLog.create({ note: `Attempt to add balance for user ${userId} with balance ${balance}`});
});

const newBalance = await this.prisma.user.update({
Expand Down

0 comments on commit 3ca2b5b

Please sign in to comment.