Skip to content
Snippets Groups Projects
Commit b9e6a809 authored by alrwasheda's avatar alrwasheda :speech_balloon:
Browse files

status active nehmen nur boolean

parent 82fcdeef
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,8 @@ boatsRouter.post(
"/api/boat/",
body("name").not().isEmpty(),
body("boattype").not().isEmpty(),
body("status").not().isEmpty(),
body("active").not().isEmpty(),
body("status").not().isEmpty() && body("status").isIn([1,0]),
body("active").not().isEmpty() && body("active").isIn([1,0]),
body("tags").not().isEmpty(),
handleValidationResult,
validateToken,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment