server: Link recipe to households
This commit is contained in:
parent
cec3ef214e
commit
69197a3852
4 changed files with 35 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ pub(super) async fn create_recipe(
|
|||
let model = recipe::ActiveModel {
|
||||
name: ActiveValue::Set(request.name),
|
||||
ranking: ActiveValue::Set(request.rating as i32),
|
||||
household: ActiveValue::Set(household.id),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue