From f8d8920c3402d2d66bf045f53066e7549473661e Mon Sep 17 00:00:00 2001 From: ArtemLavrentii <47529961+ArtemLavrentii@users.noreply.github.com> Date: Sun, 4 Jul 2021 19:15:12 +0300 Subject: [PATCH] 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. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fa8705cb..8b23da15 100644 --- a/README.md +++ b/README.md @@ -507,7 +507,7 @@ You can also specify uploading options to multer this way: ```typescript // to keep code clean better to extract this function into separate file -export const fileUploadOptions = () => { +export const fileUploadOptions = () => ({ storage: multer.diskStorage({ destination: (req: any, file: any, cb: any) => { ... }, @@ -520,7 +520,7 @@ export const fileUploadOptions = () => { fieldNameSize: 255, fileSize: 1024 * 1024 * 2 } -}; +}); // use options this way: @Post("/files")