Skip to content

Commit

Permalink
fix: delete contact by prefix (#264)
Browse files Browse the repository at this point in the history
* fix: delete contact call

* doc: jsdoc update
  • Loading branch information
iFergal authored May 30, 2024
1 parent 6113497 commit 3e96c1e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/keri/app/contacting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,13 @@ export class Contacts {
* Delete a contact
* @async
* @param {string} pre Prefix of the contact
* @returns {Promise<any>} A promise to the result of the deletion
* @returns {Promise<void>}
*/
async delete(pre: string): Promise<any> {
async delete(pre: string): Promise<void> {
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);
}

/**
Expand Down

0 comments on commit 3e96c1e

Please sign in to comment.