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

Commit ea50e2b

Browse files
committed
Revert "Revert "Changing close to use v4 m2m again""
This reverts commit c6ced2d.
1 parent aba7ffd commit ea50e2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/topcoder-api-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ async function getChallengeById(id) {
299299
* @param {Number} winnerId the winner id
300300
*/
301301
async function closeChallenge(id, winnerId) {
302-
const apiKey = await getAccessToken();
302+
const apiKey = await getM2Mtoken();
303303
logger.debug(`Closing challenge ${id}`);
304304
try {
305305
let basePath = challengesClient.basePath;

0 commit comments

Comments
 (0)