mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-06 20:10:05 +00:00
fix: accessToken not passed in function calls
This commit is contained in:
@@ -932,7 +932,7 @@ export class SASViyaApiClient {
|
|||||||
|
|
||||||
if (isRelativePath(sasJob)) {
|
if (isRelativePath(sasJob)) {
|
||||||
const folderName = sasJob.split('/')[0]
|
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}`)) {
|
if (!this.folderMap.get(`${this.rootFolderName}/${folderName}`)) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
@@ -1029,7 +1029,7 @@ export class SASViyaApiClient {
|
|||||||
|
|
||||||
if (isRelativePath(sasJob)) {
|
if (isRelativePath(sasJob)) {
|
||||||
const folderName = sasJob.split('/')[0]
|
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}`)) {
|
if (!this.folderMap.get(`${this.rootFolderName}/${folderName}`)) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|||||||
Reference in New Issue
Block a user