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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user