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

Commit 7ccac08

Browse files
committed
Merge branch 'topcoder-platform-dev' into dev
2 parents 213c774 + fbf0f35 commit 7ccac08

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/constants/workPeriods.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const JOBS_API_URL = `${API.V5}/jobs`;
2626
export const PAYMENTS_API_URL = `${API.V5}/work-period-payments`;
2727
export const PROJECTS_API_URL = `${API.V5}/projects`;
2828
export const WORK_PERIODS_API_URL = `${API.V5}/work-periods`;
29+
export const TAAS_TEAM_API_URL = `${API.V5}/taas-teams`;
2930

3031
export const DATE_FORMAT_API = "YYYY-MM-DD";
3132
export const DATE_FORMAT_UI = "MMM DD, YYYY";
@@ -143,7 +144,7 @@ export const BILLING_ACCOUNTS_ERROR = "<Error loading accounts>";
143144

144145
export const REASON_DISABLED_MESSAGE_MAP = {
145146
[REASON_DISABLED.NO_BILLING_ACCOUNT]:
146-
"Billing Account is not set for the Resorce Booking",
147+
"Billing Account is not set for the Resource Booking",
147148
[REASON_DISABLED.NO_DAYS_TO_PAY_FOR]: "There are no days to pay for",
148149
[REASON_DISABLED.NO_MEMBER_RATE]: "Member Rate should be greater than 0",
149150
};

src/services/workPeriods.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import axios, { CancelToken } from "./axios";
22
import {
3-
RB_API_URL,
3+
API_CHALLENGE_PAYMENT_STATUS,
4+
API_QUERY_PARAM_NAMES,
45
JOBS_API_URL,
56
PAYMENTS_API_URL,
67
PROJECTS_API_URL,
7-
API_QUERY_PARAM_NAMES,
8+
RB_API_URL,
9+
TAAS_TEAM_API_URL,
810
WORK_PERIODS_API_URL,
9-
API_CHALLENGE_PAYMENT_STATUS,
1011
} from "constants/workPeriods";
1112
import { buildRequestQuery, extractResponseData } from "utils/misc";
1213

@@ -39,7 +40,7 @@ export const fetchJob = (jobId, source) => {
3940
*/
4041
export const fetchProject = (projectId) => {
4142
return axios
42-
.get(`${PROJECTS_API_URL}/${projectId}?fields=projectId,name`)
43+
.get(`${TAAS_TEAM_API_URL}/${projectId}`)
4344
.then(extractResponseData);
4445
};
4546

0 commit comments

Comments
 (0)