feat: unify tasting form refactor & align db schema status levels

This commit is contained in:
2025-12-23 22:13:05 +01:00
parent 6a41667f9c
commit 11275dd875
11 changed files with 570 additions and 442 deletions

View File

@@ -88,6 +88,7 @@ export async function saveBottle(
distilled_at: metadata.distilled_at,
bottled_at: metadata.bottled_at,
batch_info: metadata.batch_info,
purchase_price: metadata.purchase_price,
suggested_tags: metadata.suggested_tags,
suggested_custom_tags: metadata.suggested_custom_tags,
})

View File

@@ -26,6 +26,7 @@ export async function updateBottle(bottleId: string, rawData: UpdateBottleData)
distilled_at: data.distilled_at,
bottled_at: data.bottled_at,
batch_info: data.batch_info,
status: data.status,
updated_at: new Date().toISOString(),
})
.eq('id', bottleId)