From 2634933e84434897b2a2f3bf7e31933ff8005f43 Mon Sep 17 00:00:00 2001 From: Mihajlo Medjedovic Date: Wed, 23 Sep 2020 20:41:31 +0200 Subject: [PATCH 1/2] fix: accessToken not passed in function calls --- src/SASViyaApiClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SASViyaApiClient.ts b/src/SASViyaApiClient.ts index b127788..c8230c4 100644 --- a/src/SASViyaApiClient.ts +++ b/src/SASViyaApiClient.ts @@ -932,7 +932,7 @@ export class SASViyaApiClient { if (isRelativePath(sasJob)) { const folderName = sasJob.split('/')[0] - await this.populateFolderMap(`${this.rootFolderName}/${folderName}`) + await this.populateFolderMap(`${this.rootFolderName}/${folderName}`, accessToken) if (!this.folderMap.get(`${this.rootFolderName}/${folderName}`)) { throw new Error( @@ -1029,7 +1029,7 @@ export class SASViyaApiClient { if (isRelativePath(sasJob)) { const folderName = sasJob.split('/')[0] - await this.populateFolderMap(`${this.rootFolderName}/${folderName}`) + await this.populateFolderMap(`${this.rootFolderName}/${folderName}`, accessToken) if (!this.folderMap.get(`${this.rootFolderName}/${folderName}`)) { throw new Error( From 4c097a69fd069190cd5b2c14900df376de170a27 Mon Sep 17 00:00:00 2001 From: Mihajlo Medjedovic Date: Wed, 23 Sep 2020 20:43:41 +0200 Subject: [PATCH 2/2] style: lint --- src/SASViyaApiClient.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/SASViyaApiClient.ts b/src/SASViyaApiClient.ts index c8230c4..c2102dd 100644 --- a/src/SASViyaApiClient.ts +++ b/src/SASViyaApiClient.ts @@ -932,7 +932,10 @@ export class SASViyaApiClient { if (isRelativePath(sasJob)) { const folderName = sasJob.split('/')[0] - await this.populateFolderMap(`${this.rootFolderName}/${folderName}`, accessToken) + await this.populateFolderMap( + `${this.rootFolderName}/${folderName}`, + accessToken + ) if (!this.folderMap.get(`${this.rootFolderName}/${folderName}`)) { throw new Error( @@ -1029,7 +1032,10 @@ export class SASViyaApiClient { if (isRelativePath(sasJob)) { const folderName = sasJob.split('/')[0] - await this.populateFolderMap(`${this.rootFolderName}/${folderName}`, accessToken) + await this.populateFolderMap( + `${this.rootFolderName}/${folderName}`, + accessToken + ) if (!this.folderMap.get(`${this.rootFolderName}/${folderName}`)) { throw new Error(