Skip to content

Commit

Permalink
fixed ticket_metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
androozka committed Sep 18, 2019
1 parent 2a62dbd commit 2b9ebc6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/v2/support/ticket_metrics/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@ const ticket_metric_id = Joi.number().min(1);

module.exports = {
list: null, // no options
show: options => Joi.validate(options, { ticket_id, ticket_metric_id })

show: options =>
Joi.object({
ticket_id,
ticket_metric_id
}).validate(options)
};

0 comments on commit 2b9ebc6

Please sign in to comment.