mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
fixed build errors
This commit is contained in:
parent
dd24b792b7
commit
4e40a51ba5
4 changed files with 12 additions and 12 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { NextResponse } from "next/server";
|
||||
import { NextResponse, NextRequest } from "next/server";
|
||||
import { db } from "@/app/db/db";
|
||||
import { postcodeSearch } from "@/app/db/schema/addresses";
|
||||
import { eq } from "drizzle-orm";
|
||||
|
|
@ -6,10 +6,10 @@ import { lookupOsPlaces } from "@/app/api/postcode/LookupOsPlaces";
|
|||
import { mapOsPlacesToFlat } from "@/app/api/postcode/OsPlacesToFlat";
|
||||
|
||||
export async function GET(
|
||||
_req: Request,
|
||||
{ params }: { params: { postcode: string } }
|
||||
request: NextRequest,
|
||||
props: { params: Promise<{ postcode: string }> }
|
||||
) {
|
||||
const { postcode } = await params;
|
||||
const { postcode } = await props.params;
|
||||
if (!postcode || typeof postcode !== "string") {
|
||||
return NextResponse.json(
|
||||
{ error: "Missing or invalid postcode" },
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { NextResponse } from "next/server";
|
||||
import { NextResponse, NextRequest } from "next/server";
|
||||
import { lookupPostcode } from "../LookupPostcode";
|
||||
|
||||
export async function GET(
|
||||
req: Request,
|
||||
{ params }: { params: { postcode: string } }
|
||||
request: NextRequest,
|
||||
props: { params: Promise<{ postcode: string }> }
|
||||
) {
|
||||
const { postcode } = await params;
|
||||
const { postcode } = await props.params;
|
||||
|
||||
if (!postcode || typeof postcode !== "string") {
|
||||
return NextResponse.json(
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import { PropertyMeta } from "@/app/db/schema/property";
|
|||
interface ToolbarProps {
|
||||
propertyId: string;
|
||||
portfolioId: string;
|
||||
propertyMeta: PropertyMeta
|
||||
propertyMeta: PropertyMeta;
|
||||
decentHomes: getUploadedFile;
|
||||
}
|
||||
|
||||
|
|
@ -172,7 +172,7 @@ export function Toolbar({
|
|||
<BookSurveyModal
|
||||
open={openModal}
|
||||
onOpenChange={setOpenModal}
|
||||
propertyId={propertyId}
|
||||
propertyId={BigInt(propertyId)}
|
||||
portfolioId={portfolioId}
|
||||
address={propertyMeta.address}
|
||||
onSuccess={() => setShowToast(true)}
|
||||
|
|
|
|||
|
|
@ -73,8 +73,8 @@ export default function RemoteAssessmentClient({
|
|||
<p className="text-sm text-white/70 max-w-md md:text-right">
|
||||
Start by selecting your property, then choose retrofit goals and
|
||||
configurations. Our model will generate your baseline and plan.
|
||||
This isn't a replacement for an on-site survey but a powerful
|
||||
first step.
|
||||
This isn`'`t a replacement for an on-site survey but a
|
||||
powerful first step.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue