Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 468d96a

Browse files
fix issue with phase status
1 parent 8221e17 commit 468d96a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ProcessorService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function syncChallengePhases (legacyId, v5Phases) {
3636
(!v5Equivalent.isOpen && _.toInteger(phase.phase_status_id) === constants.PhaseStatusTypes.Open)) {
3737
const newStatus = v5Equivalent.isOpen
3838
? constants.PhaseStatusTypes.Open
39-
: (new Date().getTime() >= new Date(v5Equivalent.scheduledStartDate).getTime() ? constants.PhaseStatusTypes.Scheduled : constants.PhaseStatusTypes.Closed)
39+
: (new Date().getTime() <= new Date(v5Equivalent.scheduledStartDate).getTime() ? constants.PhaseStatusTypes.Scheduled : constants.PhaseStatusTypes.Closed)
4040
// update phase
4141
await timelineService.updatePhase(
4242
phase.project_phase_id,

0 commit comments

Comments
 (0)