feat: unify tasting form refactor & align db schema status levels
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user