Skip to content

Commit f8d8920

Browse files
fix: Fixed example in README.md
Most likely the intent of this lambda was to return an object, and not to have a code-block with labels.
1 parent af0cdf8 commit f8d8920

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ You can also specify uploading options to multer this way:
507507

508508
```typescript
509509
// to keep code clean better to extract this function into separate file
510-
export const fileUploadOptions = () => {
510+
export const fileUploadOptions = () => ({
511511
storage: multer.diskStorage({
512512
destination: (req: any, file: any, cb: any) => { ...
513513
},
@@ -520,7 +520,7 @@ export const fileUploadOptions = () => {
520520
fieldNameSize: 255,
521521
fileSize: 1024 * 1024 * 2
522522
}
523-
};
523+
});
524524

525525
// use options this way:
526526
@Post("/files")

0 commit comments

Comments
 (0)