From e3097b1af9ecb9b6e3f30309636ee58051529793 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 12 Oct 2023 22:00:13 +0100 Subject: [PATCH] Setup pipeline ready for testing Signed-off-by: Fred Boniface --- src/services/pis.services.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/pis.services.ts b/src/services/pis.services.ts index e9b3449..d919a89 100644 --- a/src/services/pis.services.ts +++ b/src/services/pis.services.ts @@ -52,7 +52,7 @@ async function findByTiplocArray(tiplocArray: string[]) { return res; } else { let partial = await findPartialMatchByTiploc(tiplocArray); - return partial + return partial; } } @@ -108,6 +108,7 @@ async function findPartialMatchByTiploc(tiplocArray: string[]) { const res = await queryAggregate('pis', pipeline) console.log(JSON.stringify(res)) + return res } module.exports = {