server: Fix person count patch
This commit is contained in:
parent
ab345e9d7a
commit
fe187c2885
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ pub(super) async fn edit_person_count(
|
|||
) -> JsonResult<EmptyResponse> {
|
||||
let model = recipe::ActiveModel {
|
||||
id: ActiveValue::Set(recipe.id),
|
||||
person_count: ActiveValue::Set(req.person_count.min(1) as _),
|
||||
person_count: ActiveValue::Set(req.person_count.max(1) as _),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue