@@ -64,7 +64,6 @@ calendarRouter.post(
6464 body ( 'description' ) . isBoolean ( ) ,
6565 body ( 'onlyHeadsOrAbove' ) . isBoolean ( ) ,
6666 body ( 'requiresConfirmation' ) . isBoolean ( ) ,
67- body ( 'sendSlackNotifications' ) . isBoolean ( ) ,
6867 validateInputs ,
6968 CalendarController . createEventType
7069) ;
@@ -88,7 +87,6 @@ calendarRouter.post(
8887 body ( 'description' ) . isBoolean ( ) ,
8988 body ( 'onlyHeadsOrAbove' ) . isBoolean ( ) ,
9089 body ( 'requiresConfirmation' ) . isBoolean ( ) ,
91- body ( 'sendSlackNotifications' ) . isBoolean ( ) ,
9290 validateInputs ,
9391 CalendarController . editEventType
9492) ;
@@ -119,6 +117,7 @@ calendarRouter.post(
119117 isDate ( body ( 'scheduleSlots.*.startTime' ) ) ,
120118 isDate ( body ( 'scheduleSlots.*.endTime' ) ) ,
121119 body ( 'scheduleSlots.*.allDay' ) . isBoolean ( ) ,
120+ body ( 'sendSlackNotifications' ) . isBoolean ( ) ,
122121 validateInputs ,
123122 CalendarController . createEvent
124123) ;
@@ -147,6 +146,7 @@ calendarRouter.post(
147146 nonEmptyString ( body ( 'documents.*.googleFileId' ) ) ,
148147 body ( 'questionDocumentLink' ) . optional ( ) . isString ( ) ,
149148 body ( 'description' ) . optional ( ) . isString ( ) ,
149+ body ( 'sendSlackNotifications' ) . isBoolean ( ) ,
150150 validateInputs ,
151151 CalendarController . editEvent
152152) ;
0 commit comments