Skip to content

Commit 6d9fa1c

Browse files
fix challenge update issue
1 parent 265e978 commit 6d9fa1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/services/ChallengeService.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,8 +2077,7 @@ sendNotifications.schema = {
20772077
* Remove unwanted properties from the challenge object
20782078
* @param {Object} challenge the challenge object
20792079
*/
2080-
async function sanitizeChallenge (challenge) {
2081-
const span = await logger.startSpan('ChallengeService.sanitizeChallenge')
2080+
function sanitizeChallenge (challenge) {
20822081
const sanitized = _.pick(challenge, [
20832082
'trackId',
20842083
'typeId',
@@ -2156,7 +2155,6 @@ async function sanitizeChallenge (challenge) {
21562155
if (challenge.attachments) {
21572156
sanitized.attachments = _.map(challenge.attachments, attachment => _.pick(attachment, ['id', 'name', 'url', 'fileSize', 'description', 'challengeId']))
21582157
}
2159-
await logger.endSpan(span)
21602158
return sanitized
21612159
}
21622160

0 commit comments

Comments
 (0)