diff --git a/src/routes/recipe.rs b/src/routes/recipe.rs index bac1a5b..7fcfb12 100644 --- a/src/routes/recipe.rs +++ b/src/routes/recipe.rs @@ -32,7 +32,7 @@ pub(super) async fn create_recipe( ranking: ActiveValue::Set(request.rating as i32), household: ActiveValue::Set(household.id), steps: ActiveValue::Set(request.steps), - person_count: ActiveValue::Set(request.person_count.min(1) as i32), + person_count: ActiveValue::Set(request.person_count.max(1) as i32), ..Default::default() };