fixed build errors

This commit is contained in:
Khalim Conn-Kowlessar 2025-10-27 14:58:06 +00:00
parent dd24b792b7
commit 4e40a51ba5
4 changed files with 12 additions and 12 deletions

View file

@ -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" },

View file

@ -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(

View file

@ -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)}

View file

@ -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`&apos;`t a replacement for an on-site survey but a
powerful first step.
</p>
</div>