User book API: use a single query with result and count
This commit is contained in:
@@ -52,4 +52,3 @@ func GetAuthorBooksHandler(ac appcontext.AppContext) {
|
||||
}
|
||||
ac.C.JSON(http.StatusOK, dto.BookSearchGet{Books: books, Count: count})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user