From 92f621b6f90d2613c20c145e3750cdb3b9e4561b Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 30 Apr 2023 20:28:30 +0100 Subject: [PATCH] Add auth flag to PIS.js --- js/pis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/pis.js b/js/pis.js index 75989c9..97cfb88 100644 --- a/js/pis.js +++ b/js/pis.js @@ -7,7 +7,7 @@ async function findByOrigDest() { const formData = await fetchOrigDest() log(`findByOrigDest: Searching for PIS Code for ${JSON.stringify(formData)}`) const endpoint = `pis/origdest/${formData.origin}/${formData.destination}` - const json = await getApi(endpoint) + const json = await getApi(endpoint, auth = true) if (json == false) { await noData() } else {