mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-07 04:20:05 +00:00
fix: before instantiating RequestClient check if its already instantiated
This commit is contained in:
10
src/SASjs.ts
10
src/SASjs.ts
@@ -912,10 +912,12 @@ export default class SASjs {
|
|||||||
this.sasjsConfig.serverUrl = this.sasjsConfig.serverUrl.slice(0, -1)
|
this.sasjsConfig.serverUrl = this.sasjsConfig.serverUrl.slice(0, -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.requestClient = new RequestClient(
|
if (!this.requestClient) {
|
||||||
this.sasjsConfig.serverUrl,
|
this.requestClient = new RequestClient(
|
||||||
this.sasjsConfig.allowInsecureRequests
|
this.sasjsConfig.serverUrl,
|
||||||
)
|
this.sasjsConfig.allowInsecureRequests
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
this.jobsPath =
|
this.jobsPath =
|
||||||
this.sasjsConfig.serverType === ServerType.SasViya
|
this.sasjsConfig.serverType === ServerType.SasViya
|
||||||
|
|||||||
Reference in New Issue
Block a user