Skip to content

Commit 63fc362

Browse files
Fix patch payload
1 parent 5707f56 commit 63fc362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ProcessorService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function updateTaskInformation (challengeId, memberId) {
2525
challengeTaskInformation.isAssigned = false
2626
challengeTaskInformation.memberId = null
2727
}
28-
await helper.patchRequest(`${config.CHALLENGE_API_URL}/${challengeId}`, challengeTaskInformation, m2mToken)
28+
await helper.patchRequest(`${config.CHALLENGE_API_URL}/${challengeId}`, { task: challengeTaskInformation }, m2mToken)
2929
logger.info(`Task updated for id ${challengeId} ${JSON.stringify(challengeTaskInformation)}!`)
3030
}
3131
}

0 commit comments

Comments
 (0)