Add partial match note to find by CRS

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-10-12 22:04:54 +01:00
parent f37d423597
commit 398a62aadb

View File

@ -28,8 +28,9 @@ async function findPisByOrigDest(start: string, end: string) {
],
},
};
const search = db.query("pis", query);
return await search;
const search = await db.query("pis", query);
// Check for results, if none then try partial match
return search;
}
async function findPisByCode(code: string) {