TimetableAPI-Upgrade #64
@ -28,8 +28,9 @@ async function findPisByOrigDest(start: string, end: string) {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const search = db.query("pis", query);
|
const search = await db.query("pis", query);
|
||||||
return await search;
|
// Check for results, if none then try partial match
|
||||||
|
return search;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function findPisByCode(code: string) {
|
async function findPisByCode(code: string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user