We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b53144e commit 481fccdCopy full SHA for 481fccd
1 file changed
src/backend/src/routes/projects.routes.ts
@@ -13,7 +13,7 @@ projectRouter.get('/:wbsNum', ProjectsController.getSingleProject);
13
const projectValidators = [
14
intMinZero(body('crId')),
15
nonEmptyString(body('name')),
16
- intMinZero(body('budget')),
+ body('budget').optional().isInt({ min: 0 }).default(0),
17
nonEmptyString(body('summary')),
18
body('rules').isArray(),
19
nonEmptyString(body('rules.*')),
0 commit comments