From 848d96bd2ea6cce49adf8879ff39656f8fb099ee Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 24 May 2023 21:14:35 +0100 Subject: [PATCH] Fix bug Signed-off-by: Fred Boniface --- src/configs/version.configs.js | 2 +- src/services/pis.services.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configs/version.configs.js b/src/configs/version.configs.js index 90a90d9..d6399f1 100644 --- a/src/configs/version.configs.js +++ b/src/configs/version.configs.js @@ -1,6 +1,6 @@ const version = { api: ['/api/v1/',], - app: '2023.5.1' + app: '2023.5.2' }; module.exports = version; \ No newline at end of file diff --git a/src/services/pis.services.js b/src/services/pis.services.js index 3363d73..a053130 100644 --- a/src/services/pis.services.js +++ b/src/services/pis.services.js @@ -33,7 +33,7 @@ async function findPisByCode(code) { const query = { code: cleanCode }; - const search = db.query('pis', query); + const search = db.query('pis', parseInt(query)); return await search; }