diff --git a/src/portal/interfaces/list-organizations-options.interface.ts b/src/portal/interfaces/list-organizations-options.interface.ts index 8098a5383..835a4975c 100644 --- a/src/portal/interfaces/list-organizations-options.interface.ts +++ b/src/portal/interfaces/list-organizations-options.interface.ts @@ -1,5 +1,5 @@ import { PaginationOptions } from '../../common/interfaces/pagination-options.interface'; export interface ListOrganizationsOptions extends PaginationOptions { - domain?: string; + domains?: string[]; } diff --git a/src/portal/portal.spec.ts b/src/portal/portal.spec.ts index eb4be0f07..09cbe3868 100644 --- a/src/portal/portal.spec.ts +++ b/src/portal/portal.spec.ts @@ -113,11 +113,11 @@ describe('Portal', () => { mock.onGet().reply(200, listOrganizationsFixture); const { data } = await workos.portal.listOrganizations({ - domain: 'example.com', + domains: ['example.com'], }); expect(mock.history.get[0].params).toEqual({ - domain: 'example.com', + domains: ['example.com'], }); expect(mock.history.get[0].url).toEqual('/organizations');