Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
docs: fix missing async (typeorm#4458)
Browse files Browse the repository at this point in the history
In the second example the lambda is correctly started with an `async`. It is missing in the first example.
  • Loading branch information
davidpodhola authored and Kononnable committed Aug 31, 2019
1 parent d4e2443 commit 3951b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Examples:
```typescript
import {getConnection} from "typeorm";

await getConnection().transaction(transactionalEntityManager => {
await getConnection().transaction(async transactionalEntityManager => {

});
```
Expand All @@ -23,7 +23,7 @@ or
```typescript
import {getManager} from "typeorm";

await getManager().transaction(transactionalEntityManager => {
await getManager().transaction(async transactionalEntityManager => {

});
```
Expand Down

0 comments on commit 3951b58

Please sign in to comment.