alsmanager_lib 1.0.79 → 1.0.80

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 +6 -6
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -223,7 +223,7 @@ function getStorageByIdPartAndIdConfSQLite(id_storage, id_conf) {
223
223
  var query = "select id, id_conf, part_type, id_part, operation, id_part_replaced from change_config ";
224
224
  query += "where part_type = 'STORAGE' ";
225
225
  query += "and id_conf = " + id_conf + " ";
226
- query += "and id_storage = " + id_storage;
226
+ query += "and id_part = " + id_storage;
227
227
  return query;
228
228
  }
229
229
 
@@ -231,7 +231,7 @@ function getStorageByIdPartAndIdConfMySQL(id_storage, id_conf) {
231
231
  var query = "select id, id_conf, part_type, id_part, operation, id_part_replaced from change_config ";
232
232
  query += "where part_type = 'STORAGE' ";
233
233
  query += "and id_conf = :id_conf ";
234
- query += "and id_storage = :id_storage";
234
+ query += "and id_part = :id_storage";
235
235
  return query;
236
236
  }
237
237
 
@@ -482,7 +482,7 @@ function getNetworkByIdPartAndIdConfSQLite(id_network, id_conf) {
482
482
  var query = "select id, id_conf, part_type, id_part, operation, id_part_replaced from change_config ";
483
483
  query += "where part_type = 'NETWORK' ";
484
484
  query += "and id_conf = " + id_conf + " ";
485
- query += "and id_storage = " + id_network;
485
+ query += "and id_part = " + id_network;
486
486
  return query;
487
487
  }
488
488
 
@@ -490,7 +490,7 @@ function getNetworkByIdPartAndIdConfMySQL(id_network, id_conf) {
490
490
  var query = "select id, id_conf, part_type, id_part, operation, id_part_replaced from change_config ";
491
491
  query += "where part_type = 'NETWORK' ";
492
492
  query += "and id_conf = :id_conf ";
493
- query += "and id_storage = :id_network";
493
+ query += "and id_part = :id_network";
494
494
  return query;
495
495
  }
496
496
 
@@ -749,7 +749,7 @@ function getAddOnByIdPartAndIdConfSQLite(id_addon, id_conf) {
749
749
  var query = "select id, id_conf, part_type, id_part, operation, id_part_replaced from change_config ";
750
750
  query += "where part_type = 'ADDON' ";
751
751
  query += "and id_conf = " + id_conf + " ";
752
- query += "and id_storage = " + id_addon;
752
+ query += "and id_part = " + id_addon;
753
753
  return query;
754
754
  }
755
755
 
@@ -757,7 +757,7 @@ function getAddOnByIdPartAndIdConfMySQL(id_addon, id_conf) {
757
757
  var query = "select id, id_conf, part_type, id_part, operation, id_part_replaced from change_config ";
758
758
  query += "where part_type = 'ADDON' ";
759
759
  query += "and id_conf = :id_conf ";
760
- query += "and id_storage = :id_addon";
760
+ query += "and id_part = :id_addon";
761
761
  return query;
762
762
  }
763
763
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alsmanager_lib",
3
- "version": "1.0.79",
3
+ "version": "1.0.80",
4
4
  "description": "Funzioni per ALSManager",
5
5
  "license": "ISC",
6
6
  "author": "Luca Cattani",