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

Commit e7a1afc

Browse files
Merge pull request #649 from topcoder-platform/Issue_640
Issue 640 - Use updated search endpoints
2 parents 3b82544 + a9d525d commit e7a1afc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

client/src/components/SuggestionBox/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const getSkillsSuggestions = async (apiClient, inputValue) => {
6262
term = encodeURIComponent(term);
6363
const organizationId = getSingleOrg();
6464

65-
const url = `${config.API_URL}/search/skills?organizationId=${organizationId}&keyword=${term}`;
65+
const url = `${config.API_URL}/skill-search/skills?organizationId=${organizationId}&keyword=${term}`;
6666

6767
const { data } = await apiClient.get(url);
6868

@@ -102,7 +102,7 @@ const getCompanyAttributesSuggestions = async (
102102

103103
term = encodeURIComponent(term);
104104

105-
const url = `${config.API_URL}/search/userAttributes?attributeId=${attrId}&attributeValue=${term}`;
105+
const url = `${config.API_URL}/skill-search/userAttributes?attributeId=${attrId}&attributeValue=${term}`;
106106

107107
const { data } = await apiClient.get(url);
108108

client/src/lib/achievements.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as OrgService from "../services/user-org";
99
export async function getAchievements(apiClient, query) {
1010
let response;
1111
const organizationId = OrgService.getSingleOrg();
12-
let url = `${config.API_URL}/search/userAchievements?organizationId=${organizationId}&keyword=${query}`;
12+
let url = `${config.API_URL}/skill-search/userAchievements?organizationId=${organizationId}&keyword=${query}`;
1313

1414
try {
1515
response = await apiClient.get(url);

client/src/pages/Search/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function getSearchUsersRequestDetails({
1212
criteria,
1313
orderBy,
1414
} = {}) {
15-
const url = `${config.API_URL}/search/users`;
15+
const url = `${config.API_URL}/skill-search/users`;
1616
const params = new URLSearchParams();
1717
const searchPayload = {};
1818

0 commit comments

Comments
 (0)