Added settings override fields to article.

This commit is contained in:
2026-02-02 19:18:03 +01:00
parent 544b6ee5fc
commit 88a48b2e46
7 changed files with 184 additions and 43 deletions
@@ -0,0 +1,7 @@
-- Add migration script here
ALTER TABLE public.article
ADD mhd text,
ADD bio_origin text,
ADD allergens_text text,
ADD bio_info text;
+12
View File
@@ -114,6 +114,10 @@ async fn get_article(
ingredients: None,
default_unit: Unit::G,
variants: vec![],
mhd: None,
bio_origin: None,
allergens_text: None,
bio_info: None,
};
(StatusCode::INTERNAL_SERVER_ERROR, Json(article))
@@ -142,6 +146,10 @@ async fn create_article(
ingredients: None,
default_unit: Unit::G,
variants: vec![],
mhd: None,
bio_origin: None,
allergens_text: None,
bio_info: None,
};
(StatusCode::INTERNAL_SERVER_ERROR, Json(article))
@@ -172,6 +180,10 @@ async fn update_article_route(
ingredients: None,
default_unit: Unit::G,
variants: vec![],
mhd: None,
bio_origin: None,
allergens_text: None,
bio_info: None,
};
(StatusCode::INTERNAL_SERVER_ERROR, Json(article))