Commit a666df382293e8bbd37d20c291bfff036dd560b2

Authored by Adhidarma Hadiwinoto
1 parent ea199b14b3
Exists in master

terima qs text selain msg

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

... ... @@ -80,8 +80,8 @@ function onHttpIncomingMessage(request, response) {
80 80 logger.verbose("onHttpIncomingMessage()", {qs: qs});
81 81  
82 82 //var destination = qs.to.replace(config.msisdn_suffix, '');
83   - logger.info('Sending message to ' + qs.to + ': ' + qs.msg);
84   - sendMessage(qs.to, qs.msg);
  83 + logger.info('Sending message to ' + qs.to + ': ' + (qs.msg || qs.text));
  84 + sendMessage(qs.to, qs.msg || qs.text);
85 85 response.end('OK');
86 86 }
87 87