From 97530e480e447636e266015345c9ed643b859f33 Mon Sep 17 00:00:00 2001 From: Mihajlo Pavlovic Date: Sat, 14 Dec 2024 14:51:36 +0100 Subject: [PATCH] Add some comments --- src/service/triple-store-service.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/service/triple-store-service.js b/src/service/triple-store-service.js index 160a3f627..57fab6bfb 100644 --- a/src/service/triple-store-service.js +++ b/src/service/triple-store-service.js @@ -102,11 +102,13 @@ class TripleStoreService { privateHashTriple, ); } else { + // If there is no public match add it as new KA at the end sortedPrivateRepresentationTriples.push(privateHashTriple); } } const startIndexForPrivateKnowledgeAssetsWithoutPublicPair = publicKnowledgeAssetsUALs.length; + // Add private hashes without public pair to the end publicKnowledgeAssetsTriplesGrouped.push( ...sortedPrivateRepresentationTriples.map((triple) => [triple]), );