Archived
2

changed last-id behaviour to from-id

This commit is contained in:
VLE2FE
2020-06-25 11:59:36 +02:00
parent cd2962e186
commit 4dad680edf
4 changed files with 20 additions and 19 deletions

View File

@ -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);