Add basic author form

This commit is contained in:
2025-11-25 14:14:24 +01:00
parent 3cbe9f909e
commit 624dfe0faa
10 changed files with 138 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ func GetBookHandler(ac appcontext.AppContext) {
}
book, queryErr := query.FetchBookGet(ac.Db, user.ID, bookId)
if queryErr != nil {
myvalidator.ReturnErrorsAsJsonResponse(&ac, err)
myvalidator.ReturnErrorsAsJsonResponse(&ac, queryErr)
return
}
ac.C.JSON(http.StatusOK, book)