Skip to content

Commit

Permalink
fixed search
Browse files Browse the repository at this point in the history
  • Loading branch information
androozka committed Sep 18, 2019
1 parent 1ceada6 commit 11912b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/v2/support/search/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ const Joi = require('@hapi/joi');
const search_string = Joi.string().min(1);

module.exports = options =>
Joi.validate(options, { search_string: search_string.required() });
Joi.object({
search_string: search_string.required()
}).validate(options);

0 comments on commit 11912b4

Please sign in to comment.