File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default class GRPCClientPubSub implements IClientPubSub {
11
11
}
12
12
13
13
// @todo : should return a specific typed Promise<TypePubSubPublishResponse> instead of Promise<any>
14
- async publish ( pubSubName : string , topic : string , data : object = { } ) : Promise < Boolean > {
14
+ async publish ( pubSubName : string , topic : string , data : object = { } ) : Promise < boolean > {
15
15
const msgService = new PublishEventRequest ( ) ;
16
16
msgService . setPubsubName ( pubSubName ) ;
17
17
msgService . setTopic ( topic ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default class HTTPClientPubSub implements IClientPubSub {
9
9
this . client = client ;
10
10
}
11
11
12
- async publish ( pubSubName : string , topic : string , data : object = { } ) : Promise < Boolean > {
12
+ async publish ( pubSubName : string , topic : string , data : object = { } ) : Promise < boolean > {
13
13
try {
14
14
await this . client . execute ( `/publish/${ pubSubName } /${ topic } ` , {
15
15
method : 'POST' ,
Original file line number Diff line number Diff line change 1
1
export default interface IClientPubSub {
2
- publish ( pubSubName : string , topic : string , data ?: object ) : Promise < Boolean >
2
+ publish ( pubSubName : string , topic : string , data ?: object ) : Promise < boolean >
3
3
}
You can’t perform that action at this time.
0 commit comments