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

Commit 2da2c33

Browse files
committed
Changing close to use v4 m2m again
1 parent 7f3f93e commit 2da2c33

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)