diff --git a/src/errors/IsomerError.ts b/src/errors/IsomerError.ts index fa46b92a4..ef8c25482 100644 --- a/src/errors/IsomerError.ts +++ b/src/errors/IsomerError.ts @@ -23,7 +23,7 @@ export const ComponentTypes = { } export const FileCodes = { - InfraServiceError: "002", + LaunchesService: "002", CollectionPageService: "001", Undefined: "000", } diff --git a/src/errors/SiteLaunchError.ts b/src/errors/SiteLaunchError.ts index 7d3541159..40c3cabe6 100644 --- a/src/errors/SiteLaunchError.ts +++ b/src/errors/SiteLaunchError.ts @@ -7,7 +7,7 @@ export default class SiteLaunchError extends BaseIsomerError { message: string, meta = {}, componentCode = ComponentTypes.Service, - fileCode = FileCodes.InfraServiceError + fileCode = FileCodes.LaunchesService ) { super({ status: 400, diff --git a/src/services/infra/InfraService.ts b/src/services/infra/InfraService.ts index 25de11a7f..64b7ca831 100644 --- a/src/services/infra/InfraService.ts +++ b/src/services/infra/InfraService.ts @@ -4,7 +4,6 @@ import { Err, err, errAsync, - fromPromise, Ok, ok, okAsync, @@ -30,7 +29,7 @@ import SiteLaunchError from "@root/errors/SiteLaunchError" import logger from "@root/logger/logger" import { AmplifyError } from "@root/types/amplify" import { - DnsResultsForSite as SiteDnsResults, + DnsResultsForSite, SiteLaunchDto, SiteLaunchStatusObject, } from "@root/types/siteInfo" @@ -330,7 +329,7 @@ export default class InfraService { getGeneratedDnsRecords = async ( siteName: string ): Promise< - Result + Result > => { const site = await this.sitesService.getBySiteName(siteName) if (site.isErr()) {