Add auth flag to PIS.js

This commit is contained in:
Fred Boniface 2023-04-30 20:28:30 +01:00
parent fbb4702b69
commit 92f621b6f9
1 changed files with 1 additions and 1 deletions

View File

@ -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 {