Skip to content

Commit

Permalink
Revert previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak committed Mar 2, 2024
1 parent e904e4d commit 0440578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ async function listWorkerRoutes(token: string, account: string): Promise<any> {
debug(`Fetching worker domains`);
const domainData = await listWorkerDomains(token, account);
const domains = domainData.filter((x: any) => 'zone_id' in x);
const domainIds = unique(domainData, 'zone_id').map((x: any) => x.zone_id);
const domainIds = unique(domains, 'zone_id').map((x: any) => x.zone_id);
debug(`Found domain ids ${JSON.stringify(domainIds)}`);
const routes = await Promise.all(domainIds.map(domainRoutes));
if (routes) {
Expand Down

0 comments on commit 0440578

Please sign in to comment.