Skip to content

Commit e9699c7

Browse files
committed
Remove unused name param - match KERIA
1 parent 645d665 commit e9699c7

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/keri/app/exchanging.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,17 @@ export class Exchanges {
127127
return await res.json();
128128
}
129129

130-
131130
/**
132131
* Get exn messages
133132
* @async
134133
* @returns {Promise<any>} A promise to the exn message
135-
* @param name
136134
* @param said
137135
*/
138-
async get(name:string, said:string) {
139-
let path = `/identifiers/${name}/exchanges/${said}`;
136+
async get(said: string) {
137+
let path = `/exchanges/${said}`;
140138
let method = 'GET';
141139
let res = await this.client.fetch(path, method, null);
142140
return await res.json();
143-
144141
}
145142
}
146143

test/app/exchanging.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,15 +385,12 @@ describe('exchange', () => {
385385
await client.boot();
386386
await client.connect();
387387
let exchanges = client.exchanges();
388-
await exchanges.get(
389-
'aid1',
390-
'EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao'
391-
);
388+
await exchanges.get('EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao');
392389
let lastCall = fetchMock.mock.calls[fetchMock.mock.calls.length - 1]!;
393390
assert.equal(
394391
lastCall[0]!,
395392
url +
396-
'/identifiers/aid1/exchanges/EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao'
393+
'/exchanges/EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao'
397394
);
398395
assert.equal(lastCall[1]!.method, 'GET');
399396

0 commit comments

Comments
 (0)