From 3a13b536e792aa7c7725b4ff7f65f4b0af0f0e07 Mon Sep 17 00:00:00 2001 From: enrique Date: Thu, 19 Oct 2023 13:47:18 +0200 Subject: [PATCH] fix: filter by token id without did:nv: --- package.json | 2 +- src/nevermined/api/SearchApi.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 770f35222..10585ba96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nevermined-io/sdk", - "version": "2.0.0-rc19", + "version": "2.0.0-rc20", "description": "Javascript SDK for connecting with Nevermined Data Platform ", "main": "./dist/node/sdk.js", "typings": "./dist/node/sdk.d.ts", diff --git a/src/nevermined/api/SearchApi.ts b/src/nevermined/api/SearchApi.ts index 62075d7e2..8fb482eb5 100644 --- a/src/nevermined/api/SearchApi.ts +++ b/src/nevermined/api/SearchApi.ts @@ -610,7 +610,7 @@ export class SearchApi extends Instantiable { return this.servicesByNftContract( nftContractAddress, nftType, - subscriptionDid, + subscriptionDid.replace('did:nv:', ''), customNestedQueries, offset, page, @@ -770,7 +770,7 @@ export class SearchApi extends Instantiable { return this.datasetsByNftContract( nftContractAddress, nftType, - subscriptionDid, + subscriptionDid.replace('did:nv:', ''), customNestedQueries, offset, page,