Skip to content

Commit 33e5bc0

Browse files
authored
Merge pull request #282 from rakibansary/fix/challenge-update
fix: challenge submission
2 parents 79b65ab + 8191e41 commit 33e5bc0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/services/SubmissionService.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -432,16 +432,12 @@ function * _updateSubmission (authUser, submissionId, entity) {
432432
Key: {
433433
id: submissionId
434434
},
435-
UpdateExpression: `set #type = :t, #url = :u, memberId = :m, challengeId = :c,
436-
${legacyChallengeId ? 'legacyChallengeId = :lc,' : ''} updated = :ua, updatedBy = :ub, submittedDate = :sb`,
435+
UpdateExpression: `set #type = :t, #url = :u, memberId = :m, challengeId = :c, updated = :ua, updatedBy = :ub, submittedDate = :sb`,
437436
ExpressionAttributeValues: {
438437
':t': entity.type || exist.type,
439438
':u': entity.url || exist.url,
440439
':m': entity.memberId || exist.memberId,
441440
':c': challengeId,
442-
...(legacyChallengeId ? {
443-
':lc': legacyChallengeId
444-
} : {}),
445441
':ua': currDate,
446442
':ub': authUser.handle || authUser.sub,
447443
':sb': entity.submittedDate || exist.submittedDate || exist.created

0 commit comments

Comments
 (0)