Skip to content

Commit

Permalink
improvement: reduce work listing response size
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinstadler committed Jan 20, 2025
1 parent 5a3ae1e commit ac7261b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export async function getWorks(category: Category): Promise<Record<number, Bernh
q: "*",
filter_by: `contains.work.category:${category}`,
per_page: 250, // hard maximum
include_fields: "contains.work",
});
const works = x.hits?.reduce((accumulator: Record<number, BernhardWork>, hit) => {
const pub = hit.document as Publication;
Expand Down

0 comments on commit ac7261b

Please sign in to comment.