From adcb3489173bb450ba867adc7772bf6ac59fc9ca Mon Sep 17 00:00:00 2001 From: Elias Papanikitas Date: Wed, 6 Mar 2024 10:56:52 +0100 Subject: [PATCH] removed console.logs() --- app.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/app.js b/app.js index 9a4a73c..8247f3e 100644 --- a/app.js +++ b/app.js @@ -63,9 +63,10 @@ app.post("/sync-kbo-data/:kboStructuredIdUuid", async function (req, res) { identifiers.kboStructuredId ); } - await updateOvoNumberAndUri(ovoStructuredIdUri, wegwijsOvo); } + await healAbbWithWegWijsData(); + return throwServerError(API_STATUS_CODES.STATUS_200, res); // since we await, it should be 200 } catch (e) { return throwServerError(API_STATUS_CODES.STATUS_500, res, e); @@ -120,10 +121,6 @@ function getKboFields(data) { ); }) ? ORGANIZATION_STATUS.ACTIVE : ORGANIZATION_STATUS.INACTIVE; - console.log(formattedAddress); - console.log(startDate); - console.log(activeState); - return { changeTime: changeTime ?? "", organisationName: organisationName ?? "", @@ -251,13 +248,9 @@ function throwServerError(statusCode, res, message) { } function extractObjectData(object, field) { - let test = object?.findLast((fields) => { + return object?.findLast((fields) => { return fields[field.NAME] === field.ID; }); - - - console.log(test); - return test; } app.use(errorHandler);