diff --git a/package.json b/package.json index ae3c89e7..bf9ee218 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Transcend Inc.", "name": "@transcend-io/cli", "description": "Small package containing useful typescript utilities.", - "version": "4.132.1", + "version": "4.132.2", "homepage": "https://github.com/transcend-io/cli", "repository": { "type": "git", diff --git a/src/consent-manager/fetchConsentPreferences.ts b/src/consent-manager/fetchConsentPreferences.ts index 87ba1843..4ecb232e 100644 --- a/src/consent-manager/fetchConsentPreferences.ts +++ b/src/consent-manager/fetchConsentPreferences.ts @@ -68,7 +68,7 @@ export async function fetchConsentPreferences( .post('v1/consent-preferences', { json: { partition, - ...(Object.values(filterBy).length > 0 ? { filterBy } : {}), + ...filterBy, // using lastKey to paginate if it exists (will not for first iteration) startKey: currentLastKey || undefined, limit,