Skip to content

Commit

Permalink
feat(core): delete connection from KERIA before DB (better reliabilit…
Browse files Browse the repository at this point in the history
…y) (#571)

* feat: review delete local vs delete on KERIA ordering

* chore: change thrown text variable

* chore: resolve comment

* update: revert code
  • Loading branch information
Sotatek-BaoHoanga authored Jul 11, 2024
1 parent d48c84c commit 3445959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/agent/services/connectionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ class ConnectionService extends AgentService {

@OnlineOnly
async deleteConnectionById(id: string): Promise<void> {
await this.connectionStorage.deleteById(id);
// await this.signifyApi.deleteContactById(id); @TODO - foconnor: Uncomment when KERIA endpoint fixed
await this.connectionStorage.deleteById(id);
const notes = await this.getConnectNotesByConnectionId(id);
for (const note of notes) {
this.connectionNoteStorage.deleteById(note.id);
Expand Down

0 comments on commit 3445959

Please sign in to comment.