Skip to content

Commit

Permalink
Force date entry if dates are in the past
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpmorris authored and shomavg committed Dec 5, 2019
1 parent a9332c3 commit c1f2779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ public async Task<CloneVacancyWithNewDatesViewModel> GetDirtyCloneVacancyWithNew
}

public bool IsNewDatesRequired(Vacancy vacancy)
{
return vacancy.Status == VacancyStatus.Closed || vacancy.ClosingDate < _timeProvider.Now.Date;
}
=> vacancy.ClosingDate < _timeProvider.Now.Date;

public async Task<Guid> PostCloneVacancyWithSameDates(CloneVacancyDatesQuestionEditModel model, VacancyUser user)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ public async Task<CloneVacancyWithNewDatesViewModel> GetDirtyCloneVacancyWithNew
}

public bool IsNewDatesRequired(Vacancy vacancy)
{
return vacancy.Status == VacancyStatus.Closed || vacancy.ClosingDate < _timeProvider.Now.Date;
}
=> vacancy.ClosingDate < _timeProvider.Now.Date;

public async Task<Guid> PostCloneVacancyWithSameDates(CloneVacancyDatesQuestionEditModel model, VacancyUser user)
{
Expand Down

0 comments on commit c1f2779

Please sign in to comment.