Skip to content

Commit

Permalink
Update did.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jan 30, 2024
1 parent ee8b459 commit 100ec89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/src/services/did.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ export class DIDService {
... on CeramicAccount {
profile {
id
controllerDID {
id
}
name
bio
avatar
Expand All @@ -357,6 +360,9 @@ export class DIDService {
return null
}

data.node.profile.id = data.node.profile.controllerDID.id
delete data.node.profile.controllerDID;

// Return the created profile document
return data.node.profile;

Expand Down

0 comments on commit 100ec89

Please sign in to comment.