Skip to content

Commit

Permalink
fix: handle undefined app options
Browse files Browse the repository at this point in the history
  • Loading branch information
burzaszsolt committed Aug 23, 2024
1 parent ca8b433 commit 4345358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = function(options) {
}

function start(cb) {
const jsonParserLimit = options.jsonParserLimit || defaultJsonParserLimit
const jsonParserLimit = options?.jsonParserLimit || defaultJsonParserLimit
const app = express()
const jsonParser = bodyParser.json({ limit: jsonParserLimit })

Expand Down

0 comments on commit 4345358

Please sign in to comment.