Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedriad1 committed Sep 6, 2024
1 parent f305df6 commit d532fa1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/typesense/book.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ export const searchBooks = async (q: string, options?: SearchOptions) => {
return {
results: prepareResults(booksResults),
pagination: makePagination(booksResults.found, booksResults.page, limit),
selectedAuthors: selectedAuthorsResults ?? null,
selectedAuthors: selectedAuthorsResults
? prepareResults(selectedAuthorsResults)
: null,
};

// return {
Expand Down

0 comments on commit d532fa1

Please sign in to comment.