Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh-dixit committed Feb 28, 2025
1 parent 5543edc commit f92f531
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions js/src/sdk/actionRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export class ActionRegistry {
const executeRequest = async (data: RawExecuteRequestParam) => {
try {
const { data: res } = await apiClient.actionsV2.executeWithHttpClient({
client: this.client.backendClient.instance,
body: {
...data,
connectedAccountId: metadata?.connectionId,
Expand Down
22 changes: 11 additions & 11 deletions js/src/sdk/models/backendClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@ export class AxiosBackendClient {
* @private
*/
private initializeApiClient() {
// this.instance.setConfig({
// baseURL: removeTrailingSlashIfExists(this.baseUrl),
// headers: {
// common: {
// "X-API-KEY": `${this.apiKey}`,
// "X-SOURCE": "js_sdk",
// "X-RUNTIME": this.runtime,
// }
// },
// throwOnError: true,
// });
this.instance.setConfig({
baseURL: removeTrailingSlashIfExists(this.baseUrl),
headers: {
common: {
"X-API-KEY": `${this.apiKey}`,
"X-SOURCE": "js_sdk",
"X-RUNTIME": this.runtime,
}
},
throwOnError: true,
});

// setAxiosClientConfig(this.instance.instance);
}
Expand Down

0 comments on commit f92f531

Please sign in to comment.