File tree Expand file tree Collapse file tree 3 files changed +10
-23
lines changed
commands/protocols/get/receiver/v1.0.0 Expand file tree Collapse file tree 3 files changed +10
-23
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " origintrail_node" ,
3- "version" : " 8.1.1-rc.11 " ,
3+ "version" : " 8.1.1-rc.12 " ,
44 "description" : " OTNode V8" ,
55 "main" : " index.js" ,
66 "type" : " module" ,
Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ class HandleGetRequestCommand extends HandleProtocolMessageCommand {
118118 blockchain ,
119119 contract ,
120120 knowledgeCollectionId ,
121- knowledgeAssetId ,
122121 ) ;
123122 promises . push ( metadataPromise ) ;
124123 }
@@ -161,7 +160,6 @@ class HandleGetRequestCommand extends HandleProtocolMessageCommand {
161160 blockchain ,
162161 contract ,
163162 knowledgeCollectionId ,
164- knowledgeAssetId ,
165163 ) ;
166164 promises . push ( metadataPromise ) ;
167165 }
Original file line number Diff line number Diff line change @@ -653,29 +653,18 @@ class TripleStoreService {
653653 blockchain ,
654654 contract ,
655655 knowledgeCollectionId ,
656- knowledgeAssetId ,
657656 repository = TRIPLE_STORE_REPOSITORY . DKG ,
658657 ) {
659- const ual = `did:dkg:${ blockchain } /${ contract } /${ knowledgeCollectionId } ${
660- Number . isInteger ( knowledgeAssetId ) ? `/${ knowledgeAssetId } ` : ''
661- } `;
658+ const ual = `did:dkg:${ blockchain } /${ contract } /${ knowledgeCollectionId } ` ;
662659 this . logger . debug ( `Getting Assertion Metadata with the UAL: ${ ual } .` ) ;
663- let nquads ;
664- if ( Number . isInteger ( knowledgeAssetId ) ) {
665- nquads = await this . tripleStoreModuleManager . getKnowledgeAssetMetadata (
666- this . repositoryImplementations [ repository ] ,
667- repository ,
668- ual ,
669- this . config . modules . tripleStore . timeout . get ,
670- ) ;
671- } else {
672- nquads = await this . tripleStoreModuleManager . getKnowledgeCollectionMetadata (
673- this . repositoryImplementations [ repository ] ,
674- repository ,
675- ual ,
676- this . config . modules . tripleStore . timeout . get ,
677- ) ;
678- }
660+
661+ let nquads = await this . tripleStoreModuleManager . getKnowledgeCollectionMetadata (
662+ this . repositoryImplementations [ repository ] ,
663+ repository ,
664+ ual ,
665+ this . config . modules . tripleStore . timeout . get ,
666+ ) ;
667+
679668 nquads = nquads . split ( '\n' ) . filter ( ( line ) => line !== '' ) ;
680669
681670 this . logger . debug (
You can’t perform that action at this time.
0 commit comments