From 100ec89086b98fe3c9ebe9d611cb8d4c1540da7c Mon Sep 17 00:00:00 2001 From: serafettin Date: Tue, 30 Jan 2024 14:43:29 +0100 Subject: [PATCH] Update did.js --- api/src/services/did.js | 6 ++++++ 1 file changed, 6 insertions(+) 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;