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

Commit 3951b58

Browse files
davidpodholaKononnable
authored andcommitted
docs: fix missing async (typeorm#4458)
In the second example the lambda is correctly started with an `async`. It is missing in the first example.
1 parent d4e2443 commit 3951b58

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/transactions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Examples:
1313
```typescript
1414
import {getConnection} from "typeorm";
1515

16-
await getConnection().transaction(transactionalEntityManager => {
16+
await getConnection().transaction(async transactionalEntityManager => {
1717

1818
});
1919
```
@@ -23,7 +23,7 @@ or
2323
```typescript
2424
import {getManager} from "typeorm";
2525

26-
await getManager().transaction(transactionalEntityManager => {
26+
await getManager().transaction(async transactionalEntityManager => {
2727

2828
});
2929
```

0 commit comments

Comments
 (0)