Skip to content

Commit 9fa7db8

Browse files
refactor
1 parent 34b1050 commit 9fa7db8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/orkes/ConductorClientWithAuth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ export class ConductorClientWithAuth extends ConductorClient {
77

88
constructor(
99
config: Partial<OpenAPIConfig>,
10-
CustomHttpRequest?: HttpRequestConstructor
10+
HttpRequest?: HttpRequestConstructor
1111
) {
12-
super(config, CustomHttpRequest);
12+
super(config, HttpRequest);
1313
}
1414

1515
private setToken(token: string) {

src/orkes/OrkesConductorClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ const REFRESH_TOKEN_IN_MILLISECONDS = 30 * 60 * 1000;
77
/**
88
* Takes a config with keyId and keySecret returns a promise with an instance of ConductorClient
99
*
10-
* @param config ConductorClientConfig with keyId and keySecret
11-
* @param CustomHttpRequest (optional) custom http request handler class extending BaseHttpRequest
10+
* @param config (optional) OrkesApiConfig with keyId and keySecret
11+
* @param HttpRequest (optional) Custom request class, could be used to pass in a custom fetch function
1212
* @returns
1313
*/
1414
export const orkesConductorClient = async (
1515
config?: Partial<OrkesApiConfig>,
16-
CustomHttpRequest: HttpRequestConstructor = OrkesHttpRequest
16+
HttpRequest: HttpRequestConstructor = OrkesHttpRequest
1717
) => {
1818
const serverUrl = process.env.CONDUCTOR_SERVER_URL || config?.serverUrl;
1919

@@ -24,7 +24,7 @@ export const orkesConductorClient = async (
2424

2525
const conductorClientWithAuth = new ConductorClientWithAuth(
2626
{ ...config, BASE: serverUrl },
27-
CustomHttpRequest
27+
HttpRequest
2828
);
2929

3030
if (keyId && keySecret) {

0 commit comments

Comments
 (0)