diff --git a/api/src/services/did.js b/api/src/services/did.js index 3b615bc2..3d911894 100644 --- a/api/src/services/did.js +++ b/api/src/services/did.js @@ -332,6 +332,9 @@ export class DIDService { ... on CeramicAccount { profile { id + controllerDID { + id + } name bio avatar @@ -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;