changed last-id behaviour to from-id
This commit is contained in:
@ -130,7 +130,7 @@ export default class SampleValidate {
|
||||
static query (data) {
|
||||
return Joi.object({
|
||||
status: Joi.string().valid('validated', 'new', 'all'),
|
||||
'last-id': IdValidate.get(),
|
||||
'from-id': IdValidate.get(),
|
||||
'to-page': Joi.number().integer(),
|
||||
'page-size': Joi.number().integer().min(1)
|
||||
}).with('to-page', 'page-size').validate(data);
|
||||
|
Reference in New Issue
Block a user