Skip to content

Commit

Permalink
Merge pull request #3 from FitzwilliamMuseum/fix-fetch-all-ma_xrf_sca…
Browse files Browse the repository at this point in the history
…ns-limit

fix missing ma_xrf_scans by removing directus default page size
  • Loading branch information
jonathanolamalu committed Oct 30, 2023
2 parents e652f84 + 597b0bc commit b9f4063
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion directus.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export async function fetchMicrograph(id) {
}

export async function fetchAllMaXrf() {
const response = await fetch(apiBase + "items/ma_xrf_scans");
const url = apiBase + "items/ma_xrf_scans?limit=-1";
console.log("fetchAllMaXrf", url);
const response = await fetch(url);
return (await response.json()).data;
}

Expand Down

0 comments on commit b9f4063

Please sign in to comment.