From 7fd71fceb323c482ad807125c80f95d2a3fa72ea Mon Sep 17 00:00:00 2001 From: Dedy Wahyudi <d3dyw4hyud1@gmail.com> Date: Tue, 5 Oct 2021 22:52:54 +0700 Subject: [PATCH 1/3] feat(unassigned-tasks) : initial fixes --- src/services/challenges.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/services/challenges.js b/src/services/challenges.js index 7c02078..08b7c42 100644 --- a/src/services/challenges.js +++ b/src/services/challenges.js @@ -453,12 +453,15 @@ class ChallengesService { */ async getChallengeRegistrants(challengeId) { /* If no token provided, resource will return Submitter role only */ - const roleId = this.private.tokenV3 ? await this.getRoleId('Submitter') : ''; - const params = { + const roleId = this.private.tokenV3 ? await this.getRoleId('Submitter') : null; + let params = { challengeId, - roleId, }; + if (roleId) { + params = { ...params, roleId }; + } + let registrants = await this.private.apiV5.get(`/resources?${qs.stringify(params)}`) .then(checkErrorV5).then(res => res.result); From b80d503366cbad18e89fdb843c9c4a9a218c09a2 Mon Sep 17 00:00:00 2001 From: Luiz Ricardo Rodrigues <contato@luizrrodrigues.com.br> Date: Wed, 6 Oct 2021 15:32:20 -0300 Subject: [PATCH 2/3] ci: added tag test-release Issue: https://github.com/topcoder-platform/community-app/issues/5712 --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0e16184..e8eac28 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,7 +28,7 @@ jobs: - attach_workspace: at: . - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - - run: npm publish + - run: npm publish --tag test-release # dont change anything workflows: version: 2 From f053d01d6b3e8dc14175ca3f8b4fa01e8d7c2e48 Mon Sep 17 00:00:00 2001 From: Luiz Ricardo Rodrigues <contato@luizrrodrigues.com.br> Date: Wed, 6 Oct 2021 15:37:35 -0300 Subject: [PATCH 3/3] fix: for issue community-app#5712 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8e3d3a8..2b48b4f 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "lint:js": "./node_modules/.bin/eslint --ext .js,.jsx .", "test": "npm run lint && npm run jest" }, - "version": "1.2.0", + "version": "1000.28.0", "dependencies": { "auth0-js": "^6.8.4", "config": "^3.2.0",