1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

Merge pull request #673 from sasjs/issue-672

fix: fallback to contextName from sasjs config if provided…
This commit is contained in:
Allan Bowe
2022-03-07 15:44:19 +02:00
committed by GitHub

View File

@@ -113,6 +113,9 @@ export default class SASjs {
debug?: boolean
) {
this.isMethodSupported('executeScriptSASViya', [ServerType.SasViya])
contextName = contextName || this.sasjsConfig.contextName
if (!contextName) {
throw new Error(
'Context name is undefined. Please set a `contextName` in your SASjs or override config.'