API: improve validation message greater/lower than

Add translation and return a better error for lower than
This commit is contained in:
2026-03-18 15:11:29 +01:00
parent a77d57603f
commit 0efc3629b0
4 changed files with 9 additions and 2 deletions

View File

@@ -68,6 +68,7 @@ func PutUserBookHandler(ac appcontext.AppContext) {
err = validateRating(*userBookPut.Rating)
if err != nil {
myvalidator.ReturnErrorsAsJsonResponse(&ac, err)
return
}
updateRating(&userbook, &userBookPut)
}