diff --git a/apps/agent-service/src/agent-service.service.ts b/apps/agent-service/src/agent-service.service.ts index f61eff9c3..3f501e280 100644 --- a/apps/agent-service/src/agent-service.service.ts +++ b/apps/agent-service/src/agent-service.service.ts @@ -1042,7 +1042,7 @@ export class AgentServiceService { await this.agentServiceRepository.setPrimaryDid(storeDidDetails.did, orgId, storeDidDetails.didDocument); } - if (method === DidMethod.INDY) { + if (network) { const getLedgerDetails = await this.agentServiceRepository.getLedgerByNameSpace(network); await this.agentServiceRepository.updateLedgerId(orgId, getLedgerDetails.id); }