Fix bugs (not tested)

This commit is contained in:
Oscar
2024-04-08 10:35:02 +02:00
committed by Oscar Rodriguez Villalobos
parent 3052bf8315
commit 188d7f0e18
2 changed files with 9 additions and 6 deletions

View File

@@ -69,12 +69,15 @@ function separateBetweenTargetAndPublic(changes, context) {
);
if(graphTriple) {
const graph = graphTriple.object.slice(1,-1); // We have to slice it to remove the "<" and ">"
if(!changesOnGraphs[graph]) {
changesOnGraphs[graph] = [`${change.subject} ${change.predicate} ${change.object}.`]
} else {
changesOnGraphs[graph].push(`${change.subject} ${change.predicate} ${change.object}.`)
}
if(!change.object === '') {
if(!changesOnGraphs[graph]) {
changesOnGraphs[graph] = [`${change.subject} ${change.predicate} ${change.object}.`]
} else {
changesOnGraphs[graph].push(`${change.subject} ${change.predicate} ${change.object}.`)
}
}
for(let triple of otherContextTriples) {
if(triple.object === '') continue;
changesOnGraphs[graph].push(`${triple.subject} ${triple.predicate} ${triple.object}.`)
}
}

View File

@@ -637,7 +637,7 @@ services:
# CLB CONSUMERS
################################################################################
clb-contact-data-consumer:
image: lblod/delta-consumer:0.0.18
image: lblod/delta-consumer:0.0.24
environment:
DCR_SYNC_BASE_URL: "https://dev.contactgegevens-loket.lblod.info/"
DCR_SERVICE_NAME: "clb-contact-data-consumer"