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

Commit 83cfe22

Browse files
force sync phases on self service challenges
1 parent f800822 commit 83cfe22

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
@@ -84,7 +84,7 @@ async function syncChallengePhases (legacyId, v5Phases, createdBy, isSelfService
8484
logger.info(`v4 Phase: ${JSON.stringify(phase)}, v5 Equiv: ${JSON.stringify(v5Equivalent)}`)
8585
if (v5Equivalent) {
8686
// Compare duration and status
87-
if (v5Equivalent.duration * 1000 !== phase.duration * 1) {
87+
if (v5Equivalent.duration * 1000 !== phase.duration * 1 || isSelfService) {
8888
// ||
8989
// (v5Equivalent.isOpen && _.toInteger(phase.phase_status_id) === constants.PhaseStatusTypes.Closed) ||
9090
// (!v5Equivalent.isOpen && _.toInteger(phase.phase_status_id) === constants.PhaseStatusTypes.Open)) {

0 commit comments

Comments
 (0)