Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 2880010

Browse files
Remove duplicate call to PUT a challenge on v4
1 parent f3b5bdc commit 2880010

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/services/ProcessorService.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -611,11 +611,6 @@ async function processUpdate (message) {
611611
const saveDraftContestDTO = await parsePayload(message.payload, m2mToken, false, v4GroupIds)
612612
// logger.debug('Parsed Payload', saveDraftContestDTO)
613613
try {
614-
if (challenge) {
615-
// Only make the PUT request to the API if the challenge was available on the V4 API otherwise this will throw an error
616-
await helper.putRequest(`${config.V4_CHALLENGE_API_URL}/${message.payload.legacyId}`, { param: _.omit(saveDraftContestDTO, ['groupsToBeAdded', 'groupsToBeDeleted']) }, m2mToken)
617-
}
618-
619614
try {
620615
if (challenge) {
621616
await helper.putRequest(`${config.V4_CHALLENGE_API_URL}/${legacyId}`, { param: _.omit(saveDraftContestDTO, ['groupsToBeAdded', 'groupsToBeDeleted']) }, m2mToken)

0 commit comments

Comments
 (0)