Skip to content

Commit f8db7ee

Browse files
Merge pull request #2647 from daanbreur/patch-1
fix(docs/techniques/database): fix codeblock in section subscribers on page database
2 parents b917050 + dfacc90 commit f8db7ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/techniques/sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ async createMany(users: User[]) {
425425

426426
Alternatively, you can use the callback-style approach with the `transaction` method of the `DataSource` object ([read more](https://typeorm.io/#/transactions/creating-and-using-transactions)).
427427

428-
````typescript
428+
```typescript
429429
async createMany(users: User[]) {
430430
await this.dataSource.transaction(async manager => {
431431
await manager.save(users[0]);
@@ -461,7 +461,7 @@ export class UserSubscriber implements EntitySubscriberInterface<User> {
461461
console.log(`BEFORE USER INSERTED: `, event.entity);
462462
}
463463
}
464-
````
464+
```
465465

466466
> error **Warning** Event subscribers can not be [request-scoped](/fundamentals/injection-scopes).
467467

0 commit comments

Comments
 (0)