From 597b0bca5ce4a2361e684acb6c2c00ebd3ab2926 Mon Sep 17 00:00:00 2001 From: Jonathan Nesbitt Date: Mon, 30 Oct 2023 16:53:09 +0000 Subject: [PATCH] fix missing ma_xrf_scans by removing directus default page size --- directus.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/directus.js b/directus.js index 33c03cc..9f5181d 100644 --- a/directus.js +++ b/directus.js @@ -25,7 +25,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; }