Compare commits

...

2 Commits

Author SHA1 Message Date
78c5c02c0e Bump version
Signed-off-by: Fred Boniface <fred@fjla.uk>
2024-11-01 19:49:09 +00:00
a793862aa2 Search by code was searching for intergers which was returning no results. Now updated to search the database with code as a string.
Signed-off-by: Fred Boniface <fred@fjla.uk>
2024-11-01 19:47:32 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ interface versions {
const version: versions = { const version: versions = {
api: ["/api/v2"], api: ["/api/v2"],
app: "2024.07.1", app: "2024.11.1",
}; };
module.exports = version; module.exports = version;

View File

@ -46,7 +46,7 @@ export async function findPisByCode(
logger.debug(`pisServices.findPisByCode: Searching for PIS code: ${code}`); logger.debug(`pisServices.findPisByCode: Searching for PIS code: ${code}`);
const cleanCode = clean.removeNonNumeric(code); const cleanCode = clean.removeNonNumeric(code);
const query = { const query = {
code: parseInt(cleanCode), code: cleanCode,
}; };
const search = db.query("pis", query); const search = db.query("pis", query);
return await search; return await search;