Skip to content

Commit 4d674c5

Browse files
committed
adding logging
1 parent 96219c4 commit 4d674c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/ChallengeService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,7 @@ async function update (currentUser, challengeId, data, userToken, isFull) {
967967
data.winners = null
968968
}
969969

970+
logger.debug('Challenge.update', { id: challengeId }, updateDetails)
970971
await models.Challenge.update({ id: challengeId }, updateDetails)
971972

972973
if (auditLogs.length > 0) {
@@ -1007,6 +1008,7 @@ async function update (currentUser, challengeId, data, userToken, isFull) {
10071008
}
10081009

10091010
// post bus event
1011+
logger.debug('Post Bus Event', constants.Topics.ChallengeUpdated, challenge)
10101012
await helper.postBusEvent(constants.Topics.ChallengeUpdated, challenge)
10111013
return challenge
10121014
}

0 commit comments

Comments
 (0)