*Properly pass both query and options
This commit is contained in:
parent
1847eaaeac
commit
7efa878f15
30
src/index.ts
30
src/index.ts
|
@ -159,9 +159,12 @@ export abstract class RpcQueryBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public run(): this {
|
public run(): this {
|
||||||
this._promise = this._network
|
this._promise = this._network.processQueue().then(() =>
|
||||||
.processQueue()
|
callModule(RPC_MODULE, this._queryType, {
|
||||||
.then(() => callModule(RPC_MODULE, this._queryType, this._query));
|
query: this._query,
|
||||||
|
options: this._options,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -201,16 +204,17 @@ export class StreamingRpcQuery extends RpcQueryBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public run(): this {
|
public run(): this {
|
||||||
this._promise = this._network
|
this._promise = this._network.processQueue().then(() =>
|
||||||
.processQueue()
|
connectModule(
|
||||||
.then(() =>
|
RPC_MODULE,
|
||||||
connectModule(
|
this._queryType,
|
||||||
RPC_MODULE,
|
{
|
||||||
this._queryType,
|
query: this._query,
|
||||||
this._query,
|
options: this._options,
|
||||||
this._options.streamHandler
|
},
|
||||||
)
|
this._options.streamHandler
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue