TimetableAPI-Upgrade #64

Merged
fred.boniface merged 36 commits from TimetableAPI-Upgrade into main 2024-02-11 15:53:17 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 820c8b0dd4 - Show all commits

View File

@ -49,7 +49,7 @@ async function random(req, res, next) {
async function testingTiplocArray(req, res, next) {
let array = JSON.parse(req.params.array)
return pis.testingTiplocArray(array)
return pis.findByTiplocArray(array)
}
module.exports = {

View File

@ -43,7 +43,7 @@ async function findPisByCode(code: string) {
return await search;
}
async function findByTiplocArray(tiplocArray: string[]) {
export async function findByTiplocArray(tiplocArray: string[]) {
// If any of the TIPLOCS in an array is RDG4AB - Replace it with READING.
// ^^ Double check those though before doing it.
const query = {