Commit b03e7bb2f57a60d7ebeedf0aa409711d33541459

Authored by Adhidarma Hadiwinoto
1 parent 9dcf4a4f47
Exists in master and in 1 other branch webadmin

config.send_on_process_msg

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

... ... @@ -11,6 +11,7 @@
11 11 "sleep_before_unlock_modem_ms": 1200,
12 12 "ignore_prefix": false,
13 13 "number_suffix": "",
  14 + "send_on_process_msg": false,
14 15  
15 16 "sender": {
16 17 "url": "http://192.168.0.181:59194/service/sendsms",
... ... @@ -84,7 +84,7 @@ exports.send = async (partner, msg) => {
84 84 if (typeof partner !== 'string' || !partner.trim()) return;
85 85 if (typeof msg !== 'string' || !msg.trim()) return;
86 86  
87   - if (msg.trim().search(/PROSES$/) >= 0) return;
  87 + if (!config.send_on_process_msg && (msg.trim().search(/PROSES$/) >= 0)) return;
88 88  
89 89 const xid = uniqid();
90 90