Skip to content

Commit

Permalink
fix(site launch routes): removed commits (#824)
Browse files Browse the repository at this point in the history
* fix(site launch routes): removed commits

some how the commits werent added, no clue why

* fix(site launch error): fix failing build
  • Loading branch information
kishore03109 authored Jul 5, 2023
1 parent 884c5f6 commit a731782
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/errors/IsomerError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const ComponentTypes = {
}

export const FileCodes = {
InfraServiceError: "002",
LaunchesService: "002",
CollectionPageService: "001",
Undefined: "000",
}
Expand Down
2 changes: 1 addition & 1 deletion src/errors/SiteLaunchError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions src/services/infra/InfraService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Err,
err,
errAsync,
fromPromise,
Ok,
ok,
okAsync,
Expand All @@ -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"
Expand Down Expand Up @@ -330,7 +329,7 @@ export default class InfraService {
getGeneratedDnsRecords = async (
siteName: string
): Promise<
Result<SiteDnsResults, MissingSiteError | AmplifyError | SiteLaunchError>
Result<DnsResultsForSite, MissingSiteError | AmplifyError | SiteLaunchError>
> => {
const site = await this.sitesService.getBySiteName(siteName)
if (site.isErr()) {
Expand Down

0 comments on commit a731782

Please sign in to comment.