Actually fixed now

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-05-24 21:30:57 +01:00
parent 1ad96ae20d
commit a12951fe4f

View File

@ -31,9 +31,9 @@ async function findPisByCode(code) {
log.out(`pisServices.findPisByCode: Searching for PIS code: ${code}`);
const cleanCode = clean.removeNonNumeric(code);
const query = {
'code': cleanCode
'code': parseInt(cleanCode)
};
const search = db.query('pis', parseInt(query));
const search = db.query('pis', query);
return await search;
}