Skip to content

Commit 7f1c869

Browse files
fix ChallengeService.update() kafka payload
1 parent 2481c12 commit 7f1c869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ChallengeService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ async function update (currentUser, challengeId, data, userToken, isFull) {
922922
await attachment.delete()
923923
}
924924

925-
const result = isFull ? challenge : _.assignIn({ id: challengeId }, data)
925+
const result = isFull ? challenge : _.assignIn({ id: challengeId, legacyId: challenge.legacyId }, data)
926926

927927
// post bus event
928928
await helper.postBusEvent(constants.Topics.ChallengeUpdated, result)

0 commit comments

Comments
 (0)