From 63620ce061adab1400ce5e84139a1ec796c8c919 Mon Sep 17 00:00:00 2001 From: Elias Papanikitas Date: Wed, 13 Mar 2024 15:38:12 +0100 Subject: [PATCH] removed healing function from last tests --- app.js | 5 ++--- lib/queries.js | 10 +++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index 92de0da..e6b60df 100644 --- a/app.js +++ b/app.js @@ -50,8 +50,6 @@ app.post("/sync-kbo-data/:kboStructuredIdUuid", async function (req, res) { updateKboOrg(kboObject, kboIdentifiers); } - await healAbbWithWegWijsData(); - let wegwijsOvo = kboObject.ovoNumber ?? null; //Update Ovo Number @@ -121,9 +119,10 @@ function getKboFields(data) { ); }) ? ORGANIZATION_STATUS.ACTIVE : ORGANIZATION_STATUS.INACTIVE; + //currently no commercial name available return { changeTime: changeTime ?? "", - organisationName: organisationName ?? "", + commercialName: "", shortName: shortName ?? organisationName, ovoNumber: ovoNumber ?? "", kboNumber: kboNumber ?? "", diff --git a/lib/queries.js b/lib/queries.js index f900478..36232b8 100644 --- a/lib/queries.js +++ b/lib/queries.js @@ -353,11 +353,11 @@ export async function createNewKboOrg(kboOrg, kboId) { kboOrg.formalName )}`; } - // if (kboOrg.organisationName) { - // updateStr += `; ${sparqlEscapeString( - // kboOrg.organisationName - // )}`; - //} + if (kboOrg.commercialName) { + updateStr += `; ${sparqlEscapeString( + kboOrg.commercialName + )}`; + } if (kboOrg.changeTime) { updateStr += `; ${sparqlEscapeString( kboOrg.changeTime