Skip to content

Commit

Permalink
Fix for type name change.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLin0991 committed Jul 14, 2023
1 parent 7706a8a commit 722a5cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions services/app-api/src/domain-models/healthPlanPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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')

Expand All @@ -91,7 +91,7 @@ function convertContractToUnlockedHealthPlanPackage(
}

function convertContractRevisionToHealthPlanRevision(
contract: Contract
contract: ContractType
): HealthPlanRevisionType[] {
if (contract.status !== 'DRAFT') {
throw new Error(
Expand Down
4 changes: 2 additions & 2 deletions services/app-api/src/postgres/postgresStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -124,7 +124,7 @@ type Store = {

insertDraftContract: (
args: InsertContractArgsType
) => Promise<Contract | Error>
) => Promise<ContractType | Error>
}

function NewPostgresStore(client: PrismaClient): Store {
Expand Down

0 comments on commit 722a5cf

Please sign in to comment.