Skip to content

Commit

Permalink
fix(sitelaunch): do not throw for no dig results (#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore03109 authored Apr 30, 2024
1 parent 16d5c5f commit a840ed0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions support/routes/v2/formsg/formsgSiteLaunch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export class FormsgSiteLaunchRouter {
logger.info(
`Domain ${launchResult.primaryDomainSource} does not have any AAAA records.`
)
return [] // no AAAA records found
}
logger.error(
`Error when trying to get AAAA records for domain ${launchResult.primaryDomainSource}: ${e}`
Expand Down Expand Up @@ -315,6 +316,12 @@ export class FormsgSiteLaunchRouter {
logger.info(
`Domain ${launchResult.primaryDomainSource} does not have any CAA records.`
)

// if no CAA records, no need to add Amazon CAA and letsencrypt.org CAA
return {
addAWSACMCertCAA: false,
addLetsEncryptCAA: false,
}
}
logger.error(
`Error when trying to get CAA records for domain ${launchResult.primaryDomainSource}: ${e}`
Expand Down

0 comments on commit a840ed0

Please sign in to comment.