diff --git a/packages/server/src/lib/schematized/index.js b/packages/server/src/lib/schematized/index.js index c121c32d..b66248b3 100644 --- a/packages/server/src/lib/schematized/index.js +++ b/packages/server/src/lib/schematized/index.js @@ -1,11 +1,12 @@ export default (schema = {}, fn) => { return async (req, res, next) => { - if (typeof req.body === "undefined") { - req.body = {} - } - if (typeof req.query === "undefined") { - req.query = {} - } + // not necessary since linebridge lib will do this for you + // if (typeof req.body === "undefined") { + // req.body = {} + // } + // if (typeof req.query === "undefined") { + // req.query = {} + // } if (schema.required) { if (Array.isArray(schema.required)) {