Skip to content

Commit

Permalink
feat: add check
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizgar91 committed Jul 16, 2024
1 parent dea6693 commit 698162f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nevermined-io/sdk",
"version": "3.0.18-rc2",
"version": "3.0.18-rc3",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion src/nevermined/api/RegistryBaseApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,10 @@ export abstract class RegistryBaseApi extends Instantiable {
)
metadataService.attributes.encryptedFiles = JSON.parse(encryptedFilesResponse)['hash']

if (metadataService.attributes.main.type === 'service') {
if (
metadataService.attributes.main.type === 'service' &&
metadataService.attributes.main.webService.internalAttributes
) {
const encryptedServiceAttributesResponse = await this.nevermined.services.node.encrypt(
ddo.id,
JSON.stringify(metadataService.attributes.main.webService.internalAttributes),
Expand Down

0 comments on commit 698162f

Please sign in to comment.