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

Commit c2875ff

Browse files
committed
Try this instead
1 parent fd718c2 commit c2875ff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

utils/topcoder-api-helper.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@ if (config.TC_DEV_ENV) {
3737
topcoderApiProjects = topcoderDevApiProjects;
3838
topcoderApiChallenges = topcoderDevApiChallenges;
3939
}
40-
//Timeout increase to 5 minutes
41-
topcoderApiChallenges.ApiClient.timeout=300000;
4240

4341
// Init the API instances
4442
const projectsClient = topcoderApiProjects.ApiClient.instance;
4543
const challengesClient = topcoderApiChallenges.ApiClient.instance;
44+
45+
46+
//Timeout increase to 5 minutes
47+
challengesClient.timeout=300000;
48+
4649
const bearer = projectsClient.authentications.bearer;
4750
bearer.apiKeyPrefix = 'Bearer';
4851
challengesClient.authentications.bearer = bearer;

0 commit comments

Comments
 (0)