File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,9 @@ class ChallengePhaseHelper {
81
81
if ( p . name === 'Submission' ) {
82
82
if ( p . scheduledStartDate != null ) {
83
83
p . scheduledStartDate = moment ( p . scheduledStartDate ) . toDate ( )
84
- }
85
- else {
84
+ } else {
86
85
p . scheduledStartDate = moment ( startDate ) . add ( 5 , 'minutes' ) . toDate ( )
87
86
}
88
-
89
87
}
90
88
91
89
if ( moment ( p . scheduledStartDate ) . isSameOrBefore ( moment ( ) ) ) {
Original file line number Diff line number Diff line change @@ -2109,7 +2109,8 @@ fullyUpdateChallenge.schema = {
2109
2109
phaseId : Joi . id ( ) ,
2110
2110
duration : Joi . number ( ) . integer ( ) . min ( 0 ) ,
2111
2111
isOpen : Joi . boolean ( ) ,
2112
- actualEndDate : Joi . date ( ) . allow ( null )
2112
+ actualEndDate : Joi . date ( ) . allow ( null ) ,
2113
+ scheduledStartDate : Joi . date ( ) . allow ( null ) , ,
2113
2114
} ) . unknown ( true ) ) ,
2114
2115
prizeSets : Joi . array ( ) . items ( Joi . object ( ) . keys ( {
2115
2116
type : Joi . string ( ) . valid ( _ . values ( constants . prizeSetTypes ) ) . required ( ) ,
You can’t perform that action at this time.
0 commit comments