Skip to content

Commit 0176e04

Browse files
2 parents bbef815 + 3db950e commit 0176e04

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

content/fundamentals/lifecycle-events.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,5 @@ class UsersService implements OnApplicationShutdown {
109109
}
110110
}
111111
```
112+
113+
> info **Info** Calling `app.close()` doesn't terminate the Node process but only triggers the `onModuleDestroy()` and `onApplicationShutdown()` hooks, so if there are some intervals, long-running background tasks, etc. the process won't be automatically terminated.

content/techniques/file-upload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ When using `FileFieldsInterceptor()`, extract files from the `request` with the
8585
{ name: 'avatar', maxCount: 1 },
8686
{ name: 'background', maxCount: 1 },
8787
]))
88-
uploadFile(@UploadedFiles() files: Express.Multer.File[]) {
88+
uploadFile(@UploadedFiles() files: { avatar?: Express.Multer.File[], background?: Express.Multer.File[] }) {
8989
console.log(files);
9090
}
9191
@@switch

0 commit comments

Comments
 (0)