diff --git a/app/data/buildPriceRepo.ts b/app/data/buildPriceRepo.ts index 6bc2221b..b32afbed 100644 --- a/app/data/buildPriceRepo.ts +++ b/app/data/buildPriceRepo.ts @@ -9,8 +9,7 @@ const getBuildPriceByHouseType = async (houseType: string): Promise => { select: { priceMid: true }, }); - // Cast to string as 'not: null' clause in Prisma query does not type narrow - return buildPrice as number; + return buildPrice; } catch (error) { throw new Error( `Data error: Unable to get buildPrice for houseType ${houseType}`