1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-07 12:30:06 +00:00

fix(create-context): change autoExecLines to an array

This commit is contained in:
Krishna Acondy
2020-09-08 18:25:36 +01:00
parent 07695bdb85
commit c9c9754916
2 changed files with 45 additions and 6 deletions

View File

@@ -111,7 +111,7 @@ export default class SASjs {
contextName: string,
launchContextName: string,
sharedAccountId: string,
autoExecLines: string,
autoExecLines: string[],
authorizedUsers: string[],
accessToken: string
) {
@@ -128,6 +128,13 @@ export default class SASjs {
)
}
public async deleteContext(contextId: string) {
if (this.sasjsConfig.serverType !== ServerType.SASViya) {
throw new Error('This operation is only supported on SAS Viya servers.')
}
return await this.sasViyaApiClient!.deleteContext(contextId)
}
public async createSession(contextName: string, accessToken: string) {
if (this.sasjsConfig.serverType !== ServerType.SASViya) {
throw new Error('This operation is only supported on SAS Viya servers.')