Skip to content

Commit 697be0f

Browse files
committed
chore: wip
1 parent a318d29 commit 697be0f

File tree

1 file changed

+2
-6
lines changed
  • .stacks/core/dns/src/drivers

1 file changed

+2
-6
lines changed

.stacks/core/dns/src/drivers/aws.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export async function updateNameservers(hostedZoneNameservers: string[], domainN
186186
writeNameserversToConfig(hostedZoneNameservers)
187187

188188
log.info('Nameservers updated.')
189-
return
189+
return true
190190
}
191191

192192
log.info('')
@@ -207,14 +207,10 @@ export async function hasUserDomainBeenAddedToCloud(domainName?: string) {
207207

208208
const existingHostedZone = existingHostedZones.HostedZones.find(zone => zone.Name === `${domainName}.`)
209209
if (existingHostedZone) {
210-
log.info('existingHostedZone', existingHostedZone)
211-
212210
const hostedZoneDetail = await route53.getHostedZone({ Id: existingHostedZone.Id })
213211
const hostedZoneNameservers = hostedZoneDetail.DelegationSet?.NameServers || []
214212

215-
await updateNameservers(hostedZoneNameservers, domainName)
216-
217-
return true
213+
return await updateNameservers(hostedZoneNameservers, domainName)
218214
}
219215

220216
return false

0 commit comments

Comments
 (0)