Fix findByOrigDest API Path
This commit is contained in:
parent
096a74b4bb
commit
d54098562d
@ -4,7 +4,7 @@ async function findByOrigDest() {
|
|||||||
showLoading()
|
showLoading()
|
||||||
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/${formData.origin}/${formData.destination}`
|
const endpoint = `pis/origdest/${formData.origin}/${formData.destination}`
|
||||||
const json = await getApi(endpoint)
|
const json = await getApi(endpoint)
|
||||||
if (json == false) {
|
if (json == false) {
|
||||||
await noData()
|
await noData()
|
||||||
|
Reference in New Issue
Block a user