mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-04 03:00:05 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7bf53858f0 | ||
|
|
02780d0bcd | ||
|
|
6356aed06b | ||
|
|
69fd7b2cb5 |
@@ -1238,7 +1238,7 @@ export class SASViyaApiClient {
|
|||||||
throw new Error(`The path ${path} does not exist on ${this.serverUrl}`)
|
throw new Error(`The path ${path} does not exist on ${this.serverUrl}`)
|
||||||
}
|
}
|
||||||
const { result: members } = await this.request<{ items: any[] }>(
|
const { result: members } = await this.request<{ items: any[] }>(
|
||||||
`${this.serverUrl}/folders/folders/${folder.id}/members`,
|
`${this.serverUrl}/folders/folders/${folder.id}/members?limit=${folder.memberCount}`,
|
||||||
requestInfo
|
requestInfo
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -168,7 +168,11 @@ export class SessionManager {
|
|||||||
const stateLink = session.links.find((l: any) => l.rel === 'state')
|
const stateLink = session.links.find((l: any) => l.rel === 'state')
|
||||||
|
|
||||||
return new Promise(async (resolve, _) => {
|
return new Promise(async (resolve, _) => {
|
||||||
if (sessionState === 'pending') {
|
if (
|
||||||
|
sessionState === 'pending' ||
|
||||||
|
sessionState === 'running' ||
|
||||||
|
sessionState === ''
|
||||||
|
) {
|
||||||
if (stateLink) {
|
if (stateLink) {
|
||||||
if (this.debug) {
|
if (this.debug) {
|
||||||
console.log('Polling session status... \n') // ?
|
console.log('Polling session status... \n') // ?
|
||||||
|
|||||||
@@ -4,4 +4,5 @@ export interface Folder {
|
|||||||
id: string
|
id: string
|
||||||
uri: string
|
uri: string
|
||||||
links: Link[]
|
links: Link[]
|
||||||
|
memberCount: number
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user