Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 2 changed files Side-by-side Diff

center/messaging/trx-center.js
... ... @@ -25,10 +25,10 @@ function onIncomingMessage(paramsFromTransport) {
25 25  
26 26 const command = paramsFromTransport.msg.split(/[\., ]+/)[0].toUpperCase();
27 27  
28   - if (config.commands.balance.indexOf(command) >= 0) {
  28 + if (config.commands && config.commands.balance.indexOf(command) >= 0) {
29 29 executeBalanceCheck(paramsFromTransport);
30 30 }
31   - else if (config.commands.price.indexOf(command) >= 0) {
  31 + else if (config.commands && config.commands.price.indexOf(command) >= 0) {
32 32 executePriceCheck(paramsFromTransport);
33 33 }
34 34 else {
... ... @@ -94,7 +94,7 @@ function executePrepaidBuy(paramsFromTransport) {
94 94 msg: paramsFromTransport.msg
95 95 }
96 96  
97   - if (!qs.do_not_prefix_request_id) {
  97 + if (!config.do_not_prefix_request_id) {
98 98 qs.request_id = generateRequestId(qs);
99 99 if (tokens[3]) {
100 100 qs.request_id += '_' + tokens[3];
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.4.4",
  3 + "version": "1.4.5",
4 4 "description": "SDK for Komodo",
5 5 "main": "index.js",
6 6 "scripts": {