From 911f6e4a16f0b9a5686040bbe9db95290065eac3 Mon Sep 17 00:00:00 2001 From: Nathan Brown Date: Tue, 30 Apr 2024 12:19:23 +0100 Subject: [PATCH] Revert "feat(cb2-11998): repair url call to look at 1000 users page size" --- src/aad/getMemberDetails.ts | 2 +- tests/unit/getMemberDetails.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aad/getMemberDetails.ts b/src/aad/getMemberDetails.ts index 68d41f5..c596818 100644 --- a/src/aad/getMemberDetails.ts +++ b/src/aad/getMemberDetails.ts @@ -27,7 +27,7 @@ export const getMemberDetails = async (): Promise => { const promiseArray = groupIds.map(async (groupId) => { const requestUrl = new URL( - `/v1.0/groups/${groupId.trim()}/members?$count=true&$top=1000&$filter=accountEnabled eq true`, + `/v1.0/groups/${groupId.trim()}/members?$count=true&$filter=accountEnabled eq true`, aadBase, ).href; diff --git a/tests/unit/getMemberDetails.test.ts b/tests/unit/getMemberDetails.test.ts index 7f58ed8..64b2ee5 100644 --- a/tests/unit/getMemberDetails.test.ts +++ b/tests/unit/getMemberDetails.test.ts @@ -86,7 +86,7 @@ describe('getMemberDetails', () => { it('should get details from the correct url', async () => { await getMemberDetails(); expect(mockAxiosGet).toBeCalledWith( - 'https://test/v1.0/groups/testGroup/members?$count=true&$top=1000&$filter=accountEnabled%20eq%20true', + 'https://test/v1.0/groups/testGroup/members?$count=true&$filter=accountEnabled%20eq%20true', { headers: { Authorization: 'Bearer testToken', ConsistencyLevel: 'eventual' }, }, @@ -98,7 +98,7 @@ describe('getMemberDetails', () => { await getMemberDetails(); expect(mockAxiosGet).toBeCalledTimes(6); expect(mockAxiosGet).toHaveBeenLastCalledWith( - 'https://test/v1.0/groups/testGroup6/members?$count=true&$top=1000&$filter=accountEnabled%20eq%20true', + 'https://test/v1.0/groups/testGroup6/members?$count=true&$filter=accountEnabled%20eq%20true', { headers: { Authorization: 'Bearer testToken', ConsistencyLevel: 'eventual' }, },