Skip to content

Commit

Permalink
Fix server bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ahobsonsayers committed Apr 25, 2024
1 parent 829bfac commit 0370b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (*server) SearchGoodreads(
ctx context.Context,
request SearchGoodreadsRequestObject,
) (SearchGoodreadsResponseObject, error) {
books, err := searchGoodreadsBooks(ctx, request.Params.Query, &request.Params.Query)
books, err := searchGoodreadsBooks(ctx, request.Params.Query, request.Params.Author)
if err != nil {
return SearchGoodreads500JSONResponse{N500JSONResponse{Error: lo.ToPtr(err.Error())}}, nil
}
Expand All @@ -26,7 +26,7 @@ func (*server) SearchKindle(
ctx context.Context,
request SearchKindleRequestObject,
) (SearchKindleResponseObject, error) {
books, err := searchKindleBooks(ctx, request.Region, request.Params.Query, &request.Params.Query)
books, err := searchKindleBooks(ctx, request.Region, request.Params.Query, request.Params.Author)
if err != nil {
return SearchKindle500JSONResponse{N500JSONResponse{Error: lo.ToPtr(err.Error())}}, nil
}
Expand Down

0 comments on commit 0370b5e

Please sign in to comment.