Commit 47417d1cc40e7bc6233a361d861ede5216672a10

Authored by Adhidarma Hadiwinoto
1 parent 7e855bbd75
Exists in master and in 1 other branch webadmin

Support custom modem url

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

... ... @@ -39,14 +39,14 @@ async function sendToModem(partner, msg, modem, parentXid, part) {
39 39 await modemLocks.lock(modem.name);
40 40  
41 41 try {
42   - await axios.get(config.sender.url, {
  42 + await axios.get(modem.url || config.sender.url, {
43 43 params: {
44 44 to: partner,
45   - password: config.sender.password,
  45 + password: modem.password || config.sender.password,
46 46 ts: moment().format('YYYY-MM-DD HH:mm:ss'),
47 47 text: msgHead,
48 48 modem: modem.name,
49   - username: config.sender.username,
  49 + username: modem.user || config.sender.username,
50 50 },
51 51 });
52 52 } catch (e) {