1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-10 17:04:36 +00:00

Merge pull request #671 from sasjs/issue-669

fix: Viya 4 provides incorrect memberCount in the folders API
This commit is contained in:
Allan Bowe
2022-03-04 12:23:38 +02:00
committed by GitHub

View File

@@ -836,7 +836,9 @@ export class SASViyaApiClient {
const { result: members } = await this.requestClient
.get<{ items: any[] }>(
`/folders/folders/${folder.id}/members?limit=${folder.memberCount}`,
`/folders/folders/${folder.id}/members?limit=${
folder.memberCount < 500 ? 500 : folder.memberCount
}`, // this is a fix for https://github.com/sasjs/adapter/issues/669
accessToken
)
.catch((err) => {