Skip to content

Commit 13f53a6

Browse files
authored
Merge branch 'master' into patch-1
2 parents 991b3db + b145f5e commit 13f53a6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

content/fundamentals/provider-scopes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ Transient-scoped dependencies don't follow that pattern. If a singleton-scoped `
8080

8181
In an HTTP server-based application (e.g., using `@nestjs/platform-express` or `@nestjs/platform-fastify`), you may want to access a reference to the original request object when using request-scoped providers. You can do this by injecting the `REQUEST` object.
8282

83+
The `REQUEST` provider is request-scoped, so you don't need to explicitly use the `REQUEST` scope in this case.
84+
8385
```typescript
8486
import { Injectable, Scope, Inject } from '@nestjs/common';
8587
import { REQUEST } from '@nestjs/core';

content/microservices/kafka.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export class HeroesController {
228228
}
229229
```
230230

231-
> info **Hint** `@Payload()` is imported from the `@nestjs/microservices`.
231+
> info **Hint** `@Payload()` is imported from the `@nestjs/microservices` package.
232232
233233
Outgoing messages can also be keyed by passing an object with the `key` and `value` properties. Keying messages is important for meeting the [co-partitioning requirement](https://docs.confluent.io/current/ksql/docs/developer-guide/partition-data.html#co-partitioning-requirements).
234234

content/techniques/file-upload.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ Finally, you can use the special `ParseFilePipeBuilder` class that lets you comp
155155
file: Express.Multer.File,
156156
```
157157

158+
> info **Hint** File presence is required by default, but you can make it optional by adding `fileIsRequired: false` parameter inside `build` function options (at the same level as `errorHttpStatusCode`).
159+
158160
#### Array of files
159161

160162
To upload an array of files (identified with a single field name), use the `FilesInterceptor()` decorator (note the plural **Files** in the decorator name). This decorator takes three arguments:

0 commit comments

Comments
 (0)