修复重启系统

This commit is contained in:
whyour
2024-02-11 22:04:41 +08:00
parent 9c258ab113
commit b31eab02d7
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -216,7 +216,7 @@ export default (app: Router) => {
'/reload',
celebrate({
body: Joi.object({
type: Joi.string().required(),
type: Joi.string().optional().allow('').allow(null),
}),
}),
async (req: Request, res: Response, next: NextFunction) => {