Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/tools/auth0/handlers/customDomains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { CustomDomain } from 'auth0';
import DefaultAPIHandler, { order } from './default';
import { Asset, Assets } from '../../../types';
import log from '../../../logger';
import { paginate } from '../client';

export const schema = {
type: 'array',
Expand Down Expand Up @@ -86,9 +87,11 @@ export default class CustomDomainsHadnler extends DefaultAPIHandler {
return this.existing;
}

const { data: customDomains } = await this.client.customDomains.getAll();
const customDomains = await paginate<CustomDomain>(this.client.customDomains.getAll, {
checkpoint: true,
});

this.existing = customDomains as CustomDomain[];
this.existing = customDomains;

return customDomains;
} catch (err) {
Expand Down
Loading