Skip to content

Commit 481fccd

Browse files
committed
#1320 Make budget optional and default to zero
1 parent b53144e commit 481fccd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/src/routes/projects.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ projectRouter.get('/:wbsNum', ProjectsController.getSingleProject);
1313
const projectValidators = [
1414
intMinZero(body('crId')),
1515
nonEmptyString(body('name')),
16-
intMinZero(body('budget')),
16+
body('budget').optional().isInt({ min: 0 }).default(0),
1717
nonEmptyString(body('summary')),
1818
body('rules').isArray(),
1919
nonEmptyString(body('rules.*')),

0 commit comments

Comments
 (0)