From 722a5cf27960678f09d02fd2c8b1fad9a090e315 Mon Sep 17 00:00:00 2001 From: Jason Lin Date: Fri, 14 Jul 2023 15:08:40 -0400 Subject: [PATCH] Fix for type name change. --- services/app-api/src/domain-models/healthPlanPackage.ts | 6 +++--- services/app-api/src/postgres/postgresStore.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/services/app-api/src/domain-models/healthPlanPackage.ts b/services/app-api/src/domain-models/healthPlanPackage.ts index 534eb7c0c3..593193a331 100644 --- a/services/app-api/src/domain-models/healthPlanPackage.ts +++ b/services/app-api/src/domain-models/healthPlanPackage.ts @@ -4,7 +4,7 @@ import { HealthPlanPackageType, } from './HealthPlanPackageType' import { pruneDuplicateEmails } from '../emailer/formatters' -import { Contract } from './contractAndRates/contractAndRatesZodSchema' +import { ContractType } from './contractAndRates/contractAndRatesZodSchema' import { SubmissionDocument, UnlockedHealthPlanFormDataType, @@ -70,7 +70,7 @@ function packageSubmitters(pkg: HealthPlanPackageType): string[] { } function convertContractToUnlockedHealthPlanPackage( - contract: Contract + contract: ContractType ): HealthPlanPackageType | Error { console.info('Attempting to convert contract to health plan package') @@ -91,7 +91,7 @@ function convertContractToUnlockedHealthPlanPackage( } function convertContractRevisionToHealthPlanRevision( - contract: Contract + contract: ContractType ): HealthPlanRevisionType[] { if (contract.status !== 'DRAFT') { throw new Error( diff --git a/services/app-api/src/postgres/postgresStore.ts b/services/app-api/src/postgres/postgresStore.ts index 884df70047..a5defc4649 100644 --- a/services/app-api/src/postgres/postgresStore.ts +++ b/services/app-api/src/postgres/postgresStore.ts @@ -43,7 +43,7 @@ import { insertQuestionResponse, } from './questionResponse' import { findAllSupportedStates } from './state' -import { Contract } from '../domain-models/contractAndRates/contractAndRatesZodSchema' +import { ContractType } from '../domain-models/contractAndRates/contractAndRatesZodSchema' import { InsertContractArgsType, insertDraftContract, @@ -124,7 +124,7 @@ type Store = { insertDraftContract: ( args: InsertContractArgsType - ) => Promise + ) => Promise } function NewPostgresStore(client: PrismaClient): Store {