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

Commit 5ee1877

Browse files
fix phase issues
1 parent 860e6aa commit 5ee1877

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.scheduledEndDate).getTime() ? constants.PhaseStatusTypes.Scheduled : constants.PhaseStatusTypes.Closed)
4040
// update phase
4141
logger.debug(`Will update phase ${phase.project_phase_id}/${v5Equivalent.name} to duration ${v5Equivalent.duration * 1000} milli`)
4242
await timelineService.updatePhase(

0 commit comments

Comments
 (0)