1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-03 18:50:05 +00:00

fix: accessToken not passed in function calls

This commit is contained in:
Mihajlo Medjedovic
2020-09-23 20:41:31 +02:00
parent c1bab07b08
commit 2634933e84

View File

@@ -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(