Skip to content

Commit

Permalink
fix: Rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Aug 2, 2024
1 parent 691aade commit 809b5a9
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions app/api/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,23 +192,17 @@ export async function POST(req: Request) {
console.log({ gasBillYearly });

return NextResponse.json({
postcode,
houseType: data.houseType,
houseAge: data.houseAge ? parseFloat(data.houseAge.toString()) : null,
houseBedrooms: data.houseBedrooms
? parseFloat(data.houseBedrooms.toString())
: null,
houseSize: data.houseSize
? parseFloat(data.houseSize.toString())
: null,
postcode: input.housePostcode,
houseType: input.houseType,
houseAge: input.houseAge,
houseBedrooms: input.houseBedrooms,
houseSize: input.houseSize,
averagePrice: parseFloat(averagePrice.toFixed(2)),
itl3,
gdhi,
hpi: averageHpi,
buildPrice,
averageRent,
socialRentAdjustments,
socialRentAveEarning,
numberOfTransactions,
granularityPostcode,
pricesPaid,
Expand Down

0 comments on commit 809b5a9

Please sign in to comment.