fix(F-07): add crop/color fields to updateItem service type

The updateItem function's TypeScript type was missing dominantColor,
cropZoom, cropX, and cropY fields, causing crop settings to silently
fail to save despite the Zod schema and DB schema supporting them.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-12 22:33:28 +02:00
parent ce48121b2b
commit 581872b534

View File

@@ -154,6 +154,10 @@ export async function updateItem(
globalItemId: number; globalItemId: number;
purchasePriceCents: number; purchasePriceCents: number;
brand: string; brand: string;
dominantColor: string | null;
cropZoom: number | null;
cropX: number | null;
cropY: number | null;
}>, }>,
) { ) {
// Check if item exists and belongs to user // Check if item exists and belongs to user