diff --git a/src/services/pis.services.js b/src/services/pis.services.js index e4e0e07..c97bb90 100644 --- a/src/services/pis.services.js +++ b/src/services/pis.services.js @@ -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; }