Skip to content

Commit

Permalink
perf: reduce size of paperless documents api request response using f…
Browse files Browse the repository at this point in the history
…lags (#39)
  • Loading branch information
aamirazad authored Jun 25, 2024
1 parent 7a5efdd commit 44eabfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function getPaperlessDocuments(query: string) {
if (!query || query == "null" || query.length < 3 || !userData) return null;

const response = await fetch(
`${userData.paperlessURL}/api/documents/?query=${query}`,
`${userData.paperlessURL}/api/documents/?query=${query}&page=1&page_size=10&truncate_content=true`,
{
method: "GET",
headers: {
Expand Down

0 comments on commit 44eabfc

Please sign in to comment.