File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -127,20 +127,17 @@ export class Exchanges {
127
127
return await res . json ( ) ;
128
128
}
129
129
130
-
131
130
/**
132
131
* Get exn messages
133
132
* @async
134
133
* @returns {Promise<any> } A promise to the exn message
135
- * @param name
136
134
* @param said
137
135
*/
138
- async get ( name : string , said :string ) {
139
- let path = `/identifiers/ ${ name } / exchanges/${ said } ` ;
136
+ async get ( said : string ) {
137
+ let path = `/exchanges/${ said } ` ;
140
138
let method = 'GET' ;
141
139
let res = await this . client . fetch ( path , method , null ) ;
142
140
return await res . json ( ) ;
143
-
144
141
}
145
142
}
146
143
Original file line number Diff line number Diff line change @@ -385,15 +385,12 @@ describe('exchange', () => {
385
385
await client . boot ( ) ;
386
386
await client . connect ( ) ;
387
387
let exchanges = client . exchanges ( ) ;
388
- await exchanges . get (
389
- 'aid1' ,
390
- 'EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao'
391
- ) ;
388
+ await exchanges . get ( 'EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao' ) ;
392
389
let lastCall = fetchMock . mock . calls [ fetchMock . mock . calls . length - 1 ] ! ;
393
390
assert . equal (
394
391
lastCall [ 0 ] ! ,
395
392
url +
396
- '/identifiers/aid1/ exchanges/EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao'
393
+ '/exchanges/EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao'
397
394
) ;
398
395
assert . equal ( lastCall [ 1 ] ! . method , 'GET' ) ;
399
396
You can’t perform that action at this time.
0 commit comments