File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ app.use(
117117 checkGet: true , // Wether to check the GET requests or not
118118 emptyBodyMsg: ' Err Msg 1' , // Custom msg for empty body
119119 emptyFieldMsg: ' Err Msg 2' , // Custom msg for missing fields
120- supressFieldKey = false , // To supress the key of the missing field
120+ supressFieldKey: false , // To supress the key of the missing field
121121 }),
122122);
123123
@@ -144,6 +144,10 @@ $ npm i
144144$ npm test
145145```
146146
147+ ## Known Issues
148+
149+ express-suite's ` emptyInputCheck ` function does not work well with [ Multer] ( https://www.npmjs.com/package/multer )
150+
147151## License
148152
149153[ Apache License 2.0] ( https://github.com/algo7/express-suite/blob/master/LICENSE )
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ const routeCheck = (app, {
8181 * @returns {function():void }
8282 */
8383const emptyInputCheck = ( {
84- checkGet = true ,
84+ checkGet = false ,
8585 emptyBodyMsg = 'The request body is empty!' ,
8686 emptyFieldMsg = 'Some fields are missing!' ,
8787 supressFieldKey = false ,
You can’t perform that action at this time.
0 commit comments