Skip to content

Commit

Permalink
Remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
rddimon committed Dec 7, 2023
1 parent 5459025 commit b832502
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/aws/route53-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,12 @@ class Route53Wrapper {

// removing the first part of the domain name, api.test.com => test.com
const domainNameHost = domain.givenDomainName.substring(domain.givenDomainName.indexOf(".") + 1);
console.log(domain.givenDomainName);
const targetHostedZone = hostedZones
.filter((hostedZone) => {
return !isPrivateDefined || isHostedZonePrivate === hostedZone.Config.PrivateZone;
})
.filter((hostedZone) => {
const hostedZoneName = hostedZone.Name.replace(/\.$/, "");
console.log(hostedZoneName, domain.givenDomainName === hostedZoneName);
return domain.givenDomainName === hostedZoneName || domainNameHost.endsWith(hostedZoneName);
})
.sort((zone1, zone2) => zone2.Name.length - zone1.Name.length)
Expand Down

0 comments on commit b832502

Please sign in to comment.