removed console.logs()

This commit is contained in:
Elias Papanikitas
2024-03-06 10:56:52 +01:00
parent a93d4ab922
commit adcb348917

13
app.js
View File

@@ -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);