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({
2828 NAV_API_ENDPOINT : {
2929 description : 'An API endpoint for Data Provider' ,
3030 type : 'string' ,
31- default : 'https://api.apexgroup.com/v1/reports/NAV' ,
31+ default : 'https://api.apexgroup.com/1ASkuiqAPUyZTQqYIK8RlC6G8tWupuC7/ v1/reports/NAV' ,
3232 } ,
3333 AUTH_API_ENDPOINT : {
3434 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> {
174174 }
175175
176176 async getNav ( accountName : string , token : string ) : Promise < NavResponseSchema > {
177- const baseURL = this . settings . NAV_API_ENDPOINT
178- const headers = {
179- Authorization : `Bearer ${ token } ` ,
180- }
181177 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 } ` ,
186182 } ,
187183 }
188- const a = await this . requester . request ( baseURL , requestConfig )
184+ const a = await this . requester . request ( JSON . stringify ( requestConfig ) , requestConfig )
189185 if ( a . response . status == 401 ) {
190186 throw new AdapterError ( {
191187 statusCode : 502 ,
You can’t perform that action at this time.
0 commit comments