Fix TS errors blocking Docker build; docker-compose builds locally
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { z } from "zod";
|
||||
import { PlantCategory } from "@prisma/client";
|
||||
import { db } from "@/lib/db";
|
||||
import { requireAuth, isAdmin } from "@/lib/auth";
|
||||
import { fetchPlantImageUrl } from "@/lib/garden/plant-image";
|
||||
@@ -40,7 +41,7 @@ export async function PATCH(req: Request, { params }: { params: { id: string } }
|
||||
commonName,
|
||||
species,
|
||||
variety: data.variety?.trim() || null,
|
||||
category: data.category,
|
||||
category: data.category as PlantCategory,
|
||||
zone: data.zone?.trim() || null,
|
||||
plantedAt: data.plantedAt ? new Date(data.plantedAt) : null,
|
||||
source: data.source?.trim() || null,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { z } from "zod";
|
||||
import { PlantCategory } from "@prisma/client";
|
||||
import { db } from "@/lib/db";
|
||||
import { requireAuth } from "@/lib/auth";
|
||||
import { fetchPlantImageUrl } from "@/lib/garden/plant-image";
|
||||
@@ -30,7 +31,7 @@ export async function POST(req: Request) {
|
||||
commonName,
|
||||
species,
|
||||
variety: data.variety?.trim() || null,
|
||||
category: data.category,
|
||||
category: data.category as PlantCategory,
|
||||
zone: data.zone?.trim() || null,
|
||||
plantedAt: data.plantedAt ? new Date(data.plantedAt) : null,
|
||||
source: data.source?.trim() || null,
|
||||
|
||||
Reference in New Issue
Block a user