removed healing function from last tests

This commit is contained in:
Elias Papanikitas
2024-03-13 15:38:12 +01:00
parent 6b559889d7
commit 63620ce061
2 changed files with 7 additions and 8 deletions

5
app.js
View File

@@ -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 ?? "",

View File

@@ -353,11 +353,11 @@ export async function createNewKboOrg(kboOrg, kboId) {
kboOrg.formalName
)}`;
}
// if (kboOrg.organisationName) {
// updateStr += `; <http://www.w3.org/2004/02/skos/core#prefLabel> ${sparqlEscapeString(
// kboOrg.organisationName
// )}`;
//}
if (kboOrg.commercialName) {
updateStr += `; <http://www.w3.org/2004/02/skos/core#altLabel> ${sparqlEscapeString(
kboOrg.commercialName
)}`;
}
if (kboOrg.changeTime) {
updateStr += `; <https://data.lblod.info/vocabularies/generiek/geplandeEindDatum> ${sparqlEscapeString(
kboOrg.changeTime