Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused name param - match KERIA #142

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/keri/app/exchanging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,17 @@ export class Exchanges {
return await res.json();
}


/**
* Get exn messages
* @async
* @returns {Promise<any>} A promise to the exn message
* @param name
* @param said
*/
async get(name:string, said:string) {
let path = `/identifiers/${name}/exchanges/${said}`;
async get(said: string) {
let path = `/exchanges/${said}`;
let method = 'GET';
let res = await this.client.fetch(path, method, null);
return await res.json();

}
}

Expand Down
7 changes: 2 additions & 5 deletions test/app/exchanging.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,15 +385,12 @@ describe('exchange', () => {
await client.boot();
await client.connect();
let exchanges = client.exchanges();
await exchanges.get(
'aid1',
'EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao'
);
await exchanges.get('EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao');
let lastCall = fetchMock.mock.calls[fetchMock.mock.calls.length - 1]!;
assert.equal(
lastCall[0]!,
url +
'/identifiers/aid1/exchanges/EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao'
'/exchanges/EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao'
);
assert.equal(lastCall[1]!.method, 'GET');

Expand Down
Loading