Skip to content

Commit

Permalink
Merge pull request #354 from nevermined-io/feat/support-agents
Browse files Browse the repository at this point in the history
feat: support agents in the token generation
  • Loading branch information
eruizgar91 authored Oct 2, 2024
2 parents eeeaa91 + 75834b3 commit 7556ccd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/subscriptions/subscriptions.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ export class SubscriptionsService {
}
if (
metadataService.attributes.main.type !== 'service' &&
metadataService.attributes.main.type !== 'assistant'
metadataService.attributes.main.type !== 'assistant' &&
metadataService.attributes.main.type !== 'agent'
) {
Logger.debug(
`[GET /subscriptions] DID ${did} DDO has type ${metadataService.attributes.main.type}: should be service or assistant`,
`[GET /subscriptions] DID ${did} DDO has type ${metadataService.attributes.main.type}: should be service or assistant or agent`,
)
throw new BadRequestException(
`${did} DDO has type ${metadataService.attributes.main.type}: should be service or assistant`,
Expand Down

0 comments on commit 7556ccd

Please # to comment.