Commit 3715a26571f3bddcca91051dd06441b9cf2a5bdf

Authored by Adhidarma Hadiwinoto
1 parent cf7c9ed52d
Exists in master

Trx-center invalid command on executePrepaidBuy

Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff

center/messaging/trx-center.js
... ... @@ -105,12 +105,10 @@ function generateRequestId(req) {
105 105 function executePrepaidBuy(paramsFromTransport, cb) {
106 106 const tokens = paramsFromTransport.msg.trim().split(/[\., ]+/);
107 107  
108   - /*
109 108 if (!tokens || tokens.length < 3) {
110   - cb && cb(null, {msg: 'Invalid command'});
  109 + if (cb) { cb(null, {msg: 'Invalid command'}); }
111 110 return;
112 111 }
113   - */
114 112  
115 113 const qs = {
116 114 request_id: tokens[3],