alsmanager_lib 3.0.108 → 3.0.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/modules.js +1 -2
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -11418,7 +11418,6 @@ function writePortPerSite(id_site, id_place, port_sign, port_type, port_switch,
11418
11418
  function updatePortPerSite(id_port, port_type, port_switch, id_switch, local_switch_exists, port_note, is_connected, last_replaced_date) {
11419
11419
  var data_repl_str = convertDateToStringDB(last_replaced_date);
11420
11420
  var query = "update site_ports set ";
11421
- query += "port_sign = '" + port_sign + "', ";
11422
11421
  query += "port_type = '" + port_type + "', ";
11423
11422
  query += "port_switch = '" + port_switch + "', ";
11424
11423
  query += "local_switch_exists = " + local_switch_exists + ", ";
@@ -12571,7 +12570,7 @@ function convertDateToStringDB(date_to_conv) {
12571
12570
  var date_str = "";
12572
12571
  if (date_to_conv) {
12573
12572
  var d = new Date(date_to_conv);
12574
- date_str = (d.getFullYear() + '-' + ("0"+(d.getMonth()+1)).slice(-2) + "-" + "0" + d.getDate()).slice(-2);
12573
+ date_str = d.getFullYear() + '-' + ("0"+(d.getMonth()+1)).slice(-2) + "-" + ("0" + d.getDate()).slice(-2);
12575
12574
  }
12576
12575
  return date_str;
12577
12576
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "3.0.108",
7
+ "version": "3.0.110",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",