mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-08 21:10:05 +00:00
chore(*): fix code style
This commit is contained in:
14
src/SASjs.ts
14
src/SASjs.ts
@@ -107,11 +107,21 @@ export default class SASjs {
|
|||||||
return await this.sasViyaApiClient!.getExecutableContexts(accessToken)
|
return await this.sasViyaApiClient!.getExecutableContexts(accessToken)
|
||||||
}
|
}
|
||||||
|
|
||||||
public async createContext(contextName: string, sharedAccountId: string, autoExecLines: string, accessToken: string) {
|
public async createContext(
|
||||||
|
contextName: string,
|
||||||
|
sharedAccountId: string,
|
||||||
|
autoExecLines: string,
|
||||||
|
accessToken: string
|
||||||
|
) {
|
||||||
if (this.sasjsConfig.serverType !== ServerType.SASViya) {
|
if (this.sasjsConfig.serverType !== ServerType.SASViya) {
|
||||||
throw new Error('This operation is only supported on SAS Viya servers.')
|
throw new Error('This operation is only supported on SAS Viya servers.')
|
||||||
}
|
}
|
||||||
return await this.sasViyaApiClient!.createContext(contextName, sharedAccountId, autoExecLines, accessToken)
|
return await this.sasViyaApiClient!.createContext(
|
||||||
|
contextName,
|
||||||
|
sharedAccountId,
|
||||||
|
autoExecLines,
|
||||||
|
accessToken
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
public async createSession(contextName: string, accessToken: string) {
|
public async createSession(contextName: string, accessToken: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user