Add keywords to Merchandise

This commit is contained in:
Tyler Hallada 2021-02-09 01:00:28 -05:00
parent 55c68fee2c
commit 80345c3a6f
2 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ pub struct Merchandise {
pub form_type: u32,
pub is_food: bool,
pub price: u32,
pub keywords: Vec<String>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]

View File

@ -61,6 +61,7 @@ pub fn from_anyhow(error: anyhow::Error) -> HttpApiProblem {
return HttpApiProblem::with_title_and_type_from_status(
StatusCode::BAD_REQUEST,
)
// TODO: better message when this is triggered by a non-cascading DELETE
.set_detail("Owner does not exist");
} else if code == "23503"
&& (constraint == "interior_ref_lists_shop_id_fkey"