Skip to content

Commit

Permalink
[ZARS-646][ADD] conditional startdate validation
Browse files Browse the repository at this point in the history
  • Loading branch information
af-ak committed Dec 5, 2023
1 parent 2484fb9 commit e5bf7c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class GeneralProjectInformationDto extends WithIdForObjectDto {
@Expose()
@Type(() => Date)
@IsDate()
@IsAfterToday()
@IsAfterToday({ groups: [ProposalValidation.IsNotDraft] })
@IsOptional({ groups: [ProposalValidation.IsDraft] })
desiredStartTime: Date;

Expand Down

0 comments on commit e5bf7c1

Please sign in to comment.