Add keywords to Merchandise
This commit is contained in:
parent
55c68fee2c
commit
80345c3a6f
@ -21,6 +21,7 @@ pub struct Merchandise {
|
|||||||
pub form_type: u32,
|
pub form_type: u32,
|
||||||
pub is_food: bool,
|
pub is_food: bool,
|
||||||
pub price: u32,
|
pub price: u32,
|
||||||
|
pub keywords: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||||
|
@ -61,6 +61,7 @@ pub fn from_anyhow(error: anyhow::Error) -> HttpApiProblem {
|
|||||||
return HttpApiProblem::with_title_and_type_from_status(
|
return HttpApiProblem::with_title_and_type_from_status(
|
||||||
StatusCode::BAD_REQUEST,
|
StatusCode::BAD_REQUEST,
|
||||||
)
|
)
|
||||||
|
// TODO: better message when this is triggered by a non-cascading DELETE
|
||||||
.set_detail("Owner does not exist");
|
.set_detail("Owner does not exist");
|
||||||
} else if code == "23503"
|
} else if code == "23503"
|
||||||
&& (constraint == "interior_ref_lists_shop_id_fkey"
|
&& (constraint == "interior_ref_lists_shop_id_fkey"
|
||||||
|
Loading…
Reference in New Issue
Block a user