server: allow expiresAt to be null for new posts
This commit is contained in:
parent
47cd9cc094
commit
76e7bb8013
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ posts.post(
|
|||
.required(),
|
||||
userId: Joi.string().required(),
|
||||
password: Joi.string().optional(),
|
||||
expiresAt: Joi.date().optional()
|
||||
// expiresAt, allow to be null
|
||||
expiresAt: Joi.date().optional().allow(null, '')
|
||||
}
|
||||
}),
|
||||
async (req, res, next) => {
|
||||
|
|
Loading…
Reference in a new issue