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

Compare commits

...

4 Commits

Author SHA1 Message Date
Yury Shkoda
7bf53858f0 Merge pull request #176 from sasjs/cli-issue-317
fix(session-status): fixed stop polling session status
2020-12-09 12:56:17 +03:00
Yury Shkoda
02780d0bcd fix(session-status): fixed stop polling session status 2020-12-09 12:45:37 +03:00
Allan Bowe
6356aed06b Merge pull request #173 from sasjs/fix
fix: fetch all items of folder
2020-12-08 00:43:38 +01:00
Saad Jutt
69fd7b2cb5 fix: fetch all items of folder 2020-12-08 04:37:42 +05:00
3 changed files with 7 additions and 2 deletions

View File

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

View File

@@ -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') // ?

View File

@@ -4,4 +4,5 @@ export interface Folder {
id: string id: string
uri: string uri: string
links: Link[] links: Link[]
memberCount: number
} }