mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-10-28 23:17:32 +08:00
allow longer cursors
This commit is contained in:
parent
39049ef497
commit
3df13f7fee
4 changed files with 18 additions and 12 deletions
|
|
@ -19,11 +19,13 @@ module.exports = (db, server) => {
|
|||
.min(1)
|
||||
.max(250),
|
||||
next: Joi.string()
|
||||
.empty('')
|
||||
.alphanum()
|
||||
.max(100),
|
||||
.max(1024),
|
||||
prev: Joi.string()
|
||||
.empty('')
|
||||
.alphanum()
|
||||
.max(100),
|
||||
.max(1024),
|
||||
page: Joi.number().default(1)
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -98,11 +98,11 @@ module.exports = (db, server, userHandler) => {
|
|||
next: Joi.string()
|
||||
.empty('')
|
||||
.alphanum()
|
||||
.max(100),
|
||||
.max(1024),
|
||||
previous: Joi.string()
|
||||
.empty('')
|
||||
.alphanum()
|
||||
.max(100),
|
||||
.max(1024),
|
||||
page: Joi.number()
|
||||
.empty('')
|
||||
.default(1)
|
||||
|
|
|
|||
|
|
@ -35,11 +35,11 @@ module.exports = (db, server, messageHandler) => {
|
|||
next: Joi.string()
|
||||
.empty('')
|
||||
.alphanum()
|
||||
.max(100),
|
||||
.max(1024),
|
||||
previous: Joi.string()
|
||||
.empty('')
|
||||
.alphanum()
|
||||
.max(100),
|
||||
.max(1024),
|
||||
page: Joi.number()
|
||||
.empty('')
|
||||
.default(1)
|
||||
|
|
@ -249,11 +249,13 @@ module.exports = (db, server, messageHandler) => {
|
|||
.min(1)
|
||||
.max(250),
|
||||
next: Joi.string()
|
||||
.empty('')
|
||||
.alphanum()
|
||||
.max(100),
|
||||
.max(1024),
|
||||
previous: Joi.string()
|
||||
.empty('')
|
||||
.alphanum()
|
||||
.max(100),
|
||||
.max(1024),
|
||||
page: Joi.number().default(1)
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -15,20 +15,22 @@ module.exports = (db, server, userHandler) => {
|
|||
|
||||
const schema = Joi.object().keys({
|
||||
query: Joi.string()
|
||||
.empty('')
|
||||
.alphanum()
|
||||
.lowercase()
|
||||
.empty('')
|
||||
.max(100),
|
||||
.max(128),
|
||||
limit: Joi.number()
|
||||
.default(20)
|
||||
.min(1)
|
||||
.max(250),
|
||||
next: Joi.string()
|
||||
.empty('')
|
||||
.alphanum()
|
||||
.max(100),
|
||||
.max(1024),
|
||||
previous: Joi.string()
|
||||
.empty('')
|
||||
.alphanum()
|
||||
.max(100),
|
||||
.max(1024),
|
||||
page: Joi.number().default(1)
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue