File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed
packages/sources/apex/src Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @chainlink/apex-adapter ' : patch
3
+ ---
4
+
5
+ Update url
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const config = new AdapterConfig({
28
28
NAV_API_ENDPOINT : {
29
29
description : 'An API endpoint for Data Provider' ,
30
30
type : 'string' ,
31
- default : 'https://api.apexgroup.com/v1/reports/NAV' ,
31
+ default : 'https://api.apexgroup.com/1ASkuiqAPUyZTQqYIK8RlC6G8tWupuC7/ v1/reports/NAV' ,
32
32
} ,
33
33
AUTH_API_ENDPOINT : {
34
34
description : 'An auth API endpoint for Data Provider' ,
Original file line number Diff line number Diff line change @@ -174,18 +174,14 @@ class NavTransport extends SubscriptionTransport<HttpTransportTypes> {
174
174
}
175
175
176
176
async getNav ( accountName : string , token : string ) : Promise < NavResponseSchema > {
177
- const baseURL = this . settings . NAV_API_ENDPOINT
178
- const headers = {
179
- Authorization : `Bearer ${ token } ` ,
180
- }
181
177
const requestConfig = {
182
- baseURL,
183
- headers ,
184
- params : {
185
- accountName ,
178
+ baseURL : this . settings . NAV_API_ENDPOINT ,
179
+ url : `?accountName= ${ accountName } ` ,
180
+ headers : {
181
+ Authorization : `Bearer ${ token } ` ,
186
182
} ,
187
183
}
188
- const a = await this . requester . request ( baseURL , requestConfig )
184
+ const a = await this . requester . request ( JSON . stringify ( requestConfig ) , requestConfig )
189
185
if ( a . response . status == 401 ) {
190
186
throw new AdapterError ( {
191
187
statusCode : 502 ,
You can’t perform that action at this time.
0 commit comments