mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-12 01:34:35 +00:00
Compare commits
1 Commits
v4.12.2
...
callback-v
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
591e1ebc09 |
12
src/SASjs.ts
12
src/SASjs.ts
@@ -550,7 +550,10 @@ export default class SASjs {
|
|||||||
...this.sasjsConfig,
|
...this.sasjsConfig,
|
||||||
...config
|
...config
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
typeof loginRequiredCallback === 'function' ||
|
||||||
|
typeof loginRequiredCallback === 'undefined'
|
||||||
|
) {
|
||||||
if (config.serverType === ServerType.SasViya && config.contextName) {
|
if (config.serverType === ServerType.SasViya && config.contextName) {
|
||||||
if (config.useComputeApi) {
|
if (config.useComputeApi) {
|
||||||
return await this.computeJobExecutor!.execute(
|
return await this.computeJobExecutor!.execute(
|
||||||
@@ -577,6 +580,13 @@ export default class SASjs {
|
|||||||
loginRequiredCallback
|
loginRequiredCallback
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
return Promise.reject(
|
||||||
|
new ErrorResponse(
|
||||||
|
`Invalid loginRequiredCallback parameter was provided. Expected Callback function but found ${typeof loginRequiredCallback}`
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user