1
0
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:
Krishna Acondy
2020-09-06 21:05:05 +01:00
parent e3edace882
commit d932d9ea0a

View File

@@ -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) {