Update dependencies

This commit is contained in:
Jaco Greeff
2017-09-18 10:56:09 +02:00
parent 1e1137a6f7
commit afec8358d3
2 changed files with 8 additions and 5 deletions

View File

@@ -214,11 +214,11 @@ export default class Store {
executePubsubCall = ({ api, id, from, token, params }, source) => {
const callback = this._methodCallbackPost(id, from, source, token);
// TODO: enable security pubsub
this.provider.subscribe(api, callback, params).then((v, e) => {
console.log('Error and result', v, e);
this._methodCallbackPost(id, from, source, token)(null, v);
});
this.provider
.subscribe(api, callback, params)
.then((result, error) => {
this._methodCallbackPost(id, from, source, token)(null, result);
});
}
executeMethodCall = ({ id, from, method, params, token }, source) => {