This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export const JOBS_API_URL = `${API.V5}/jobs`;
26
26
export const PAYMENTS_API_URL = `${ API . V5 } /work-period-payments` ;
27
27
export const PROJECTS_API_URL = `${ API . V5 } /projects` ;
28
28
export const WORK_PERIODS_API_URL = `${ API . V5 } /work-periods` ;
29
+ export const TAAS_TEAM_API_URL = `${ API . V5 } /taas-teams` ;
29
30
30
31
export const DATE_FORMAT_API = "YYYY-MM-DD" ;
31
32
export const DATE_FORMAT_UI = "MMM DD, YYYY" ;
@@ -143,7 +144,7 @@ export const BILLING_ACCOUNTS_ERROR = "<Error loading accounts>";
143
144
144
145
export const REASON_DISABLED_MESSAGE_MAP = {
145
146
[ 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" ,
147
148
[ REASON_DISABLED . NO_DAYS_TO_PAY_FOR ] : "There are no days to pay for" ,
148
149
[ REASON_DISABLED . NO_MEMBER_RATE ] : "Member Rate should be greater than 0" ,
149
150
} ;
Original file line number Diff line number Diff line change 1
1
import axios , { CancelToken } from "./axios" ;
2
2
import {
3
- RB_API_URL ,
3
+ API_CHALLENGE_PAYMENT_STATUS ,
4
+ API_QUERY_PARAM_NAMES ,
4
5
JOBS_API_URL ,
5
6
PAYMENTS_API_URL ,
6
7
PROJECTS_API_URL ,
7
- API_QUERY_PARAM_NAMES ,
8
+ RB_API_URL ,
9
+ TAAS_TEAM_API_URL ,
8
10
WORK_PERIODS_API_URL ,
9
- API_CHALLENGE_PAYMENT_STATUS ,
10
11
} from "constants/workPeriods" ;
11
12
import { buildRequestQuery , extractResponseData } from "utils/misc" ;
12
13
@@ -39,7 +40,7 @@ export const fetchJob = (jobId, source) => {
39
40
*/
40
41
export const fetchProject = ( projectId ) => {
41
42
return axios
42
- . get ( `${ PROJECTS_API_URL } /${ projectId } ?fields=projectId,name ` )
43
+ . get ( `${ TAAS_TEAM_API_URL } /${ projectId } ` )
43
44
. then ( extractResponseData ) ;
44
45
} ;
45
46
You can’t perform that action at this time.
0 commit comments