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

fix(lint): used latest version of prettier

This commit is contained in:
Yury Shkoda
2021-03-09 10:21:52 +03:00
parent f10d6ec80a
commit 0f5702e21b
3 changed files with 13 additions and 6 deletions

View File

@@ -314,7 +314,9 @@ export class ContextManager {
contextId: string, contextId: string,
accessToken?: string accessToken?: string
): Promise<ContextAllAttributes> { ): Promise<ContextAllAttributes> {
const { result: context } = await this.requestClient const {
result: context
} = await this.requestClient
.get<ContextAllAttributes>( .get<ContextAllAttributes>(
`${this.serverUrl}/compute/contexts/${contextId}`, `${this.serverUrl}/compute/contexts/${contextId}`,
accessToken accessToken

View File

@@ -571,9 +571,9 @@ export class SASViyaApiClient {
} }
} }
const { result: createFolderResponse } = await this.requestClient.post< const {
Folder result: createFolderResponse
>( } = await this.requestClient.post<Folder>(
`/folders/folders?parentFolderUri=${parentFolderUri}`, `/folders/folders?parentFolderUri=${parentFolderUri}`,
{ {
name: folderName, name: folderName,
@@ -852,7 +852,9 @@ export class SASViyaApiClient {
throw new Error(`URI of job definition was not found.`) throw new Error(`URI of job definition was not found.`)
} }
const { result: jobDefinition } = await this.requestClient const {
result: jobDefinition
} = await this.requestClient
.get<JobDefinition>( .get<JobDefinition>(
`${this.serverUrl}${jobDefinitionLink.href}`, `${this.serverUrl}${jobDefinitionLink.href}`,
accessToken accessToken

View File

@@ -91,7 +91,10 @@ export class SessionManager {
} }
private async createAndWaitForSession(accessToken?: string) { private async createAndWaitForSession(accessToken?: string) {
const { result: createdSession, etag } = await this.requestClient const {
result: createdSession,
etag
} = await this.requestClient
.post<Session>( .post<Session>(
`${this.serverUrl}/compute/contexts/${ `${this.serverUrl}/compute/contexts/${
this.currentContext!.id this.currentContext!.id