From 1ad96ae20ddb74c8990079f2830d2a49e298fc77 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 24 May 2023 21:22:58 +0100 Subject: [PATCH] Fix code lookup Signed-off-by: Fred Boniface --- src/services/pis.services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/pis.services.js b/src/services/pis.services.js index a053130..e4e0e07 100644 --- a/src/services/pis.services.js +++ b/src/services/pis.services.js @@ -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;