Merges a form ingredient with a validated database ingredient.
Preserves the original quantity and note from the form, while using the validated ingredient's database metadata (id, name, unit, type, season).
The form ingredient with user-entered quantity/note
The database ingredient with canonical metadata
A merged ingredient combining form data with database metadata
Merges a form ingredient with a validated database ingredient.
Preserves the original quantity and note from the form, while using the validated ingredient's database metadata (id, name, unit, type, season).