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

Commit 64a953e

Browse files
Merge pull request #116 from eisbilir/fix-status-update
fix syntax
2 parents 56a0980 + 1ab16a9 commit 64a953e

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
@@ -96,7 +96,7 @@ async function syncChallengePhases (legacyId, v5Phases, createdBy, isSelfService
9696
logger.debug(`Will update phase ${phaseName}/${v5Equivalent.name} from ${phase.duration} to duration ${v5Equivalent.duration * 1000} milli`)
9797
const newStatus = v5Equivalent.isOpen
9898
? constants.PhaseStatusTypes.Open
99-
: _.toInteger(phase.phase_status_id) === constants.PhaseStatusTypes.Scheduled ? constants.PhaseStatusTypes.Scheduled : constants.PhaseStatusTypes.Closed)
99+
: (_.toInteger(phase.phase_status_id) === constants.PhaseStatusTypes.Scheduled ? constants.PhaseStatusTypes.Scheduled : constants.PhaseStatusTypes.Closed)
100100
await timelineService.updatePhase(
101101
phase.project_phase_id,
102102
legacyId,

0 commit comments

Comments
 (0)