We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efc74e3 commit b9505a7Copy full SHA for b9505a7
src/services/ProcessorService.js
@@ -9,6 +9,9 @@ const helper = require('../common/helper')
9
const config = require('config')
10
const moment = require('moment')
11
12
+Joi.optionalId = () => Joi.string().uuid()
13
+Joi.id = () => Joi.optionalId().required()
14
+
15
const client = helper.getESClient()
16
17
const intOrUUID = () => Joi.alternatives().try(Joi.number().integer().min(1), Joi.string().uuid())
0 commit comments