mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-11 01:14:36 +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)
|
||||
}
|
||||
|
||||
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) {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user