pis #2
@ -7,7 +7,7 @@ async function findByOrigDest() {
|
|||||||
const formData = await fetchOrigDest()
|
const formData = await fetchOrigDest()
|
||||||
log(`findByOrigDest: Searching for PIS Code for ${JSON.stringify(formData)}`)
|
log(`findByOrigDest: Searching for PIS Code for ${JSON.stringify(formData)}`)
|
||||||
const endpoint = `pis/origdest/${formData.origin}/${formData.destination}`
|
const endpoint = `pis/origdest/${formData.origin}/${formData.destination}`
|
||||||
const json = await getApi(endpoint)
|
const json = await getApi(endpoint, auth = true)
|
||||||
if (json == false) {
|
if (json == false) {
|
||||||
await noData()
|
await noData()
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user