From b7d433763909df2e835db0c5f3b88c569240c607 Mon Sep 17 00:00:00 2001 From: Martin Nguyen Date: Fri, 13 Dec 2024 15:44:00 +0700 Subject: [PATCH] feat: mark done when finished recovering in the DB --- src/core/agent/agent.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/core/agent/agent.ts b/src/core/agent/agent.ts index 9f578f700..49519f1d2 100644 --- a/src/core/agent/agent.ts +++ b/src/core/agent/agent.ts @@ -307,7 +307,7 @@ class Agent { bootUrl: "", }); this.markAgentStatus(true); - + await this.syncWithKeria(); } @@ -316,10 +316,12 @@ class Agent { await this.identifiers.syncKeriaIdentifiers(); await this.credentials.syncACDCs(); - // await this.basicStorage.save({ - // id: MiscRecordId.PROCESS_RECOVERING, - // content: { value: true }, - // }); + await this.basicStorage.update( + new BasicRecord({ + id: MiscRecordId.PROCESS_RECOVERING, + content: { value: false }, + }) + ); } private async connectSignifyClient(): Promise {