From 175bd6e822edc1cd9fc4bdd0c4252dcbd22832f8 Mon Sep 17 00:00:00 2001 From: iFergal Date: Wed, 22 May 2024 19:05:20 +0100 Subject: [PATCH 1/2] fix: delete contact call --- src/keri/app/contacting.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/keri/app/contacting.ts b/src/keri/app/contacting.ts index 98a71ca5..87b92809 100644 --- a/src/keri/app/contacting.ts +++ b/src/keri/app/contacting.ts @@ -76,12 +76,11 @@ export class Contacts { * @param {string} pre Prefix of the contact * @returns {Promise} A promise to the result of the deletion */ - async delete(pre: string): Promise { + async delete(pre: string): Promise { const path = `/contacts/` + pre; const method = 'DELETE'; - const res = await this.client.fetch(path, method, null); - return await res.json(); + await this.client.fetch(path, method, null); } /** From eb6f0890fbe3927892197c078ac2e7ee9ca66d01 Mon Sep 17 00:00:00 2001 From: iFergal Date: Wed, 22 May 2024 19:16:05 +0100 Subject: [PATCH 2/2] doc: jsdoc update --- src/keri/app/contacting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keri/app/contacting.ts b/src/keri/app/contacting.ts index 87b92809..ef31beb4 100644 --- a/src/keri/app/contacting.ts +++ b/src/keri/app/contacting.ts @@ -74,7 +74,7 @@ export class Contacts { * Delete a contact * @async * @param {string} pre Prefix of the contact - * @returns {Promise} A promise to the result of the deletion + * @returns {Promise} */ async delete(pre: string): Promise { const path = `/contacts/` + pre;