Commit 1031749311b931bd3002c844937b52219aed2775

Authored by Adhidarma Hadiwinoto
1 parent 557cc7fd55
Exists in master and in 1 other branch webadmin

Deprecating enabledModems

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

... ... @@ -12,6 +12,9 @@ exports.modemsDictionary = (arrayOfModem) => {
12 12 return retval;
13 13 };
14 14  
  15 +/**
  16 + * deprecated
  17 + */
15 18 exports.enabledModems = (arrayOfModem) => {
16 19 const modems = arrayOfModem || config.modems || [];
17 20 return modems.filter((modem) => !modem.disabled);
... ... @@ -19,7 +22,7 @@ exports.enabledModems = (arrayOfModem) => {
19 22  
20 23 exports.outgoingModems = (arrayOfModem) => {
21 24 const modems = arrayOfModem || config.modems || [];
22   - return modems.filter((modem) => !modem.disabled && modem.outgoing);
  25 + return modems.filter((modem) => modem.outgoing);
23 26 };
24 27  
25 28 exports.randomModem = (arrayOfModem) => {