mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-09-15 17:44:53 +08:00
updated cursor schema
This commit is contained in:
parent
e29c51e64f
commit
e7413df902
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ const mongoCursorValidator = () => {
|
|||
};
|
||||
};
|
||||
|
||||
const mongoCursorSchema = Joi.string().trim().lowercase().empty('').custom(mongoCursorValidator({}), 'Cursor validation').max(1024);
|
||||
const mongoCursorSchema = Joi.string().trim().empty('').custom(mongoCursorValidator({}), 'Cursor validation').max(1024);
|
||||
const pageLimitSchema = Joi.number().default(20).min(1).max(250).label('Page size');
|
||||
const pageNrSchema = Joi.number().default(1).label('Page number');
|
||||
const nextPageCursorSchema = mongoCursorSchema.label('Next page cursor');
|
||||
|
|
Loading…
Add table
Reference in a new issue