*Add bypassCache to simpleQuery
This commit is contained in:
parent
70a6092079
commit
a4f0f10a85
|
@ -131,6 +131,7 @@ export default class RpcNetwork {
|
||||||
method: string,
|
method: string,
|
||||||
module: string,
|
module: string,
|
||||||
data: object | any[] = {},
|
data: object | any[] = {},
|
||||||
|
bypassCache: boolean = false,
|
||||||
options: RpcQueryOptions = {}
|
options: RpcQueryOptions = {}
|
||||||
): SimpleRpcQuery {
|
): SimpleRpcQuery {
|
||||||
return new SimpleRpcQuery(
|
return new SimpleRpcQuery(
|
||||||
|
@ -140,6 +141,7 @@ export default class RpcNetwork {
|
||||||
method,
|
method,
|
||||||
module,
|
module,
|
||||||
data,
|
data,
|
||||||
|
bypassCache: bypassCache || this._bypassCache,
|
||||||
},
|
},
|
||||||
options
|
options
|
||||||
).run();
|
).run();
|
||||||
|
|
Loading…
Reference in New Issue