alsmanager_lib 3.0.107 → 3.0.109
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.
- package/lib/modules.js +1 -2
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -11398,7 +11398,7 @@ function getPorteByIdSite(db_used, id_site) {
|
|
|
11398
11398
|
}
|
|
11399
11399
|
|
|
11400
11400
|
function getPortById(id_port) {
|
|
11401
|
-
var query = "select id_site, id_place, port_sign, port_type, port_switch, local_switch_exists, note, is_connected, installed_date, last_replaced_date ";
|
|
11401
|
+
var query = "select id, id_site, id_place, port_sign, port_type, port_switch, id_switch, local_switch_exists, note, is_connected, installed_date, last_replaced_date ";
|
|
11402
11402
|
query += "from site_ports ";
|
|
11403
11403
|
query += "where id = " + id_port;
|
|
11404
11404
|
return query;
|
|
@@ -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 + ", ";
|