55 blockedByValidators ,
66 descriptionBulletsValidators ,
77 intMinZero ,
8- isDate ,
8+ isDateOnly ,
99 isWorkPackageStageOrNone ,
1010 nonEmptyString ,
1111 validateInputs
@@ -35,7 +35,7 @@ workPackagesRouter.post(
3535 nonEmptyString ( body ( 'crId' ) . optional ( ) ) ,
3636 nonEmptyString ( body ( 'name' ) ) ,
3737 isWorkPackageStageOrNone ( body ( 'stage' ) ) ,
38- isDate ( body ( 'startDate' ) ) ,
38+ isDateOnly ( body ( 'startDate' ) ) ,
3939 intMinZero ( body ( 'duration' ) ) ,
4040 intMinZero ( body ( 'projectWbsNum.carNumber' ) ) ,
4141 intMinZero ( body ( 'projectWbsNum.projectNumber' ) ) ,
@@ -51,7 +51,7 @@ workPackagesRouter.post(
5151 nonEmptyString ( body ( 'workPackageId' ) ) ,
5252 nonEmptyString ( body ( 'crId' ) ) ,
5353 nonEmptyString ( body ( 'name' ) ) ,
54- isDate ( body ( 'startDate' ) ) ,
54+ isDateOnly ( body ( 'startDate' ) ) ,
5555 intMinZero ( body ( 'duration' ) ) ,
5656 isWorkPackageStageOrNone ( body ( 'stage' ) ) ,
5757 ...blockedByValidators ,
@@ -65,7 +65,7 @@ workPackagesRouter.delete('/:wbsNum/delete', WorkPackagesController.deleteWorkPa
6565workPackagesRouter . get ( '/:wbsNum/blocking' , WorkPackagesController . getBlockingWorkPackages ) ;
6666workPackagesRouter . post (
6767 '/slack-upcoming-deadlines' ,
68- isDate ( body ( 'deadline' ) ) ,
68+ isDateOnly ( body ( 'deadline' ) ) ,
6969 validateInputs ,
7070 WorkPackagesController . slackMessageUpcomingDeadlines
7171) ;
0 commit comments