Fix code lookup
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
848d96bd2e
commit
1ad96ae20d
@ -31,7 +31,7 @@ async function findPisByCode(code) {
|
||||
log.out(`pisServices.findPisByCode: Searching for PIS code: ${code}`);
|
||||
const cleanCode = clean.removeNonNumeric(code);
|
||||
const query = {
|
||||
code: cleanCode
|
||||
'code': cleanCode
|
||||
};
|
||||
const search = db.query('pis', parseInt(query));
|
||||
return await search;
|
||||
|
Loading…
Reference in New Issue
Block a user