Skip to content

Commit

Permalink
fix: typo in readme example (#25)
Browse files Browse the repository at this point in the history
exporessJoiValidator => expressJoiValidator
  • Loading branch information
bonno42h authored and evanshortiss committed Nov 7, 2019
1 parent 9565083 commit 2b9d31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion express-joi-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports.createValidator = function generateJoiMiddlewareInstance(cfg) {
instance[type] = function(schema, opts) {
opts = opts || {} // like config, default to empty object

return function exporessJoiValidator(req, res, next) {
return function expressJoiValidator(req, res, next) {
const ret = schema.validate(req[type], opts.joi || container.joi)

if (!ret.error) {
Expand Down

0 comments on commit 2b9d31e

Please sign in to comment.