server: Link recipe to households

This commit is contained in:
traxys 2023-06-22 23:03:50 +02:00
parent cec3ef214e
commit 69197a3852
4 changed files with 35 additions and 1 deletions

View file

@ -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()
};