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:
Bonna Moon
2026-06-15 20:56:37 -05:00
parent 04dec2a198
commit 4245232834
3 changed files with 5 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ services:
- internal
app:
build: .
image: moonbase:latest
restart: unless-stopped
depends_on:

View File

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

View File

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