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

fix: fetch all items of folder

This commit is contained in:
Saad Jutt
2020-12-08 04:37:42 +05:00
parent 5d1eed1494
commit 69fd7b2cb5
2 changed files with 2 additions and 1 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

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