From 0ae42a15b2ddb7d7ea3d7879e57b76c21e8d001c Mon Sep 17 00:00:00 2001 From: "Sven (AAMOS AI)" Date: Sun, 9 Aug 2026 21:15:41 +0700 Subject: [PATCH] =?UTF-8?q?fix(database):=20applicera=20compound-allergen-?= =?UTF-8?q?r=C3=A4ttningar=20+=20vegansk=20currypasta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/database/src/seed/data/ingredients.ts | 17 +++++++++++++++-- .../recipe-generation/scripts/pilot-batch.ts | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/database/src/seed/data/ingredients.ts b/packages/database/src/seed/data/ingredients.ts index 87b9958..5b2da2e 100644 --- a/packages/database/src/seed/data/ingredients.ts +++ b/packages/database/src/seed/data/ingredients.ts @@ -284,6 +284,9 @@ export const SEED_INGREDIENTS: SeedIngredient[] = [ ing("falukorv", "Falukorv", "Falu sausage", "kott_fagel", { isPork: true, isBeef: true, + containsGluten: true, + containsLactose: true, + allergens: ["gluten", "milk"], n: { kcal: 230, p: 10, k: 6, f: 19, mf: 7, salt: 1.9 }, shelfLifeGuidance: { fridge: 10 }, defaultPriceMinorPerKg: 7000, @@ -303,6 +306,9 @@ export const SEED_INGREDIENTS: SeedIngredient[] = [ ing("meatball_pork_beef", "Köttbullar (färdiga)", "Meatballs", "kott_fagel", { isPork: true, isBeef: true, + containsGluten: true, + containsLactose: true, + allergens: ["gluten", "eggs", "milk"], n: { kcal: 230, p: 13, k: 7, f: 17, mf: 6.5, salt: 1.8 }, shelfLifeGuidance: { fridge: 5, freezer: 120 }, defaultPriceMinorPerKg: 9000, @@ -763,13 +769,20 @@ export const SEED_INGREDIENTS: SeedIngredient[] = [ defaultPriceMinorPerKg: 9000, }), ing("red_curry_paste", "Röd currypasta", "Red curry paste", "skafferi", { - ...veg, - allergens: [], + allergens: ["crustaceans", "fish"], densityGPerMl: 1.05, n: { kcal: 120, p: 3, k: 15, f: 5, mf: 1, salt: 6 }, shelfLifeGuidance: { pantry: 365, fridge: 30 }, defaultPriceMinorPerKg: 15000, }), + ing("red_curry_paste_vegan", "Röd currypasta (vegansk)", "Vegan red curry paste", "skafferi", { + ...veg, + allergens: [], + densityGPerMl: 1.05, + n: { kcal: 115, p: 2.5, k: 14, f: 5, mf: 1, salt: 6 }, + shelfLifeGuidance: { pantry: 365, fridge: 30 }, + defaultPriceMinorPerKg: 16000, + }), ing("mustard", "Senap", "Mustard", "skafferi", { ...veg, allergens: ["mustard"], diff --git a/packages/recipe-generation/scripts/pilot-batch.ts b/packages/recipe-generation/scripts/pilot-batch.ts index d0f7a7b..843a243 100644 --- a/packages/recipe-generation/scripts/pilot-batch.ts +++ b/packages/recipe-generation/scripts/pilot-batch.ts @@ -77,6 +77,7 @@ const targets: PipelineTarget[] = [ { mealType: "dinner", mainIngredientId: "minced_mixed", dietVariant: "standard", count: 2 }, // Veg-varianter { mealType: "dinner", mainIngredientId: "tofu", dietVariant: "vegan", count: 3 }, + { mealType: "dinner", mainIngredientId: "red_curry_paste_vegan", dietVariant: "vegan", count: 2 }, { mealType: "dinner", mainIngredientId: "red_lentils", dietVariant: "vegetarian", count: 2 }, { mealType: "dinner", mainIngredientId: "chickpeas_canned", dietVariant: "vegan", count: 2 }, ];