Prepare for testing partial tiploc matches
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
84791ea93a
commit
820c8b0dd4
@ -49,7 +49,7 @@ async function random(req, res, next) {
|
|||||||
|
|
||||||
async function testingTiplocArray(req, res, next) {
|
async function testingTiplocArray(req, res, next) {
|
||||||
let array = JSON.parse(req.params.array)
|
let array = JSON.parse(req.params.array)
|
||||||
return pis.testingTiplocArray(array)
|
return pis.findByTiplocArray(array)
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
@ -43,7 +43,7 @@ async function findPisByCode(code: string) {
|
|||||||
return await search;
|
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.
|
// If any of the TIPLOCS in an array is RDG4AB - Replace it with READING.
|
||||||
// ^^ Double check those though before doing it.
|
// ^^ Double check those though before doing it.
|
||||||
const query = {
|
const query = {
|
||||||
|
Loading…
Reference in New Issue
Block a user