From 2634933e84434897b2a2f3bf7e31933ff8005f43 Mon Sep 17 00:00:00 2001 From: Mihajlo Medjedovic Date: Wed, 23 Sep 2020 20:41:31 +0200 Subject: [PATCH] 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(