修复文件为空无法保存

This commit is contained in:
hanhh
2021-08-03 19:03:41 +08:00
parent d8587b64a5
commit 9e4b41ce48
4 changed files with 6 additions and 11 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ export default (app: Router) => {
celebrate({
body: Joi.object({
name: Joi.string().required(),
content: Joi.string().required(),
content: Joi.string().allow('').optional(),
}),
}),
async (req: Request, res: Response, next: NextFunction) => {