Skip to content

Commit a517a2b

Browse files
fix issue with dynamo/es sync on phases
1 parent 0a2359e commit a517a2b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/services/ChallengeService.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,11 +1477,10 @@ async function update (currentUser, challengeId, data, isFull) {
14771477
op = '$PUT'
14781478
}
14791479
} else if (key === 'phases') {
1480-
if (isDifferentPhases(challenge[key], value)) {
1481-
phasesHaveBeenModified = true
1482-
logger.info('update phases')
1483-
op = '$PUT'
1484-
}
1480+
// always consider a modification if the property exists
1481+
phasesHaveBeenModified = true
1482+
logger.info('update phases')
1483+
op = '$PUT'
14851484
} else if (key === 'prizeSets') {
14861485
if (isDifferentPrizeSets(challenge[key], value)) {
14871486
logger.info('update prize sets')

0 commit comments

Comments
 (0)