Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow update agents and assistants #730

Merged
merged 3 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.43",
"version": "3.0.44",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions src/nevermined/api/RegistryBaseApi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
import { formatUnits } from 'viem'
import { Instantiable, InstantiableConfig } from '../../Instantiable.abstract'
import { generateId } from '../../common/helpers'
import { DEFAULT_ENCRYPTION_METHOD, ZeroAddress } from '../../constants/AssetConstants'
Expand Down Expand Up @@ -26,7 +27,6 @@ import {
} from '../../types/MetadataTypes'
import { zeroX } from '../../utils/ConversionTypeHelpers'
import { SubscribablePromise } from '../../utils/SubscribablePromise'
import { formatUnits } from 'viem'
import { AccessService, NFTAccessService, NFTSalesService } from '../AccessService'
import { DID } from '../DID'
import { CreateProgressStep, OrderProgressStep, UpdateProgressStep } from '../ProgressSteps'
Expand Down Expand Up @@ -430,7 +430,9 @@ export abstract class RegistryBaseApi extends Instantiable {
metadataService.attributes.encryptedFiles = JSON.parse(encryptedFilesResponse)['hash']

if (
metadataService.attributes.main.type === 'service' &&
(metadataService.attributes.main.type === 'service' ||
metadataService.attributes.main.type === 'assistant' ||
metadataService.attributes.main.type === 'agent') &&
metadataService.attributes.main.webService.internalAttributes
) {
const encryptedServiceAttributesResponse = await this.nevermined.services.node.encrypt(
Expand Down
Loading