alsmanager_lib 2.0.95 → 2.0.96

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 +4 -4
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -11473,13 +11473,13 @@ function insertPCFromTemplateIntoDevice(db_used, id_dev_ref) {
11473
11473
  }
11474
11474
  //
11475
11475
  function existStorageTemplateSQLite(dev_model, dev_manifacturer, dev_type) {
11476
- var query = "select count(*) as num from tpl_model_storage ";
11476
+ var query = "select count(*) as num from tpl_model_storages ";
11477
11477
  query += "where device_type = '" + dev_type + "' and device_manifacturer = '" + dev_manifacturer + "' and device_model = '" + dev_model + "'";
11478
11478
  return query;
11479
11479
  }
11480
11480
 
11481
11481
  function existStorageTemplateMySQL(dev_model, dev_manifacturer, dev_type) {
11482
- var query = "select count(*) as num from tpl_model_storage ";
11482
+ var query = "select count(*) as num from tpl_model_storages ";
11483
11483
  query += "where device_type = :dev_type and device_manifacturer = :dev_manifacturer and device_model = :dev_model";
11484
11484
  return query;
11485
11485
  }
@@ -11599,13 +11599,13 @@ function insertStorageFromTemplateIntoDevice(db_used, id_dev_ref) {
11599
11599
  }
11600
11600
  //
11601
11601
  function existNetworkTemplateSQLite(dev_model, dev_manifacturer, dev_type) {
11602
- var query = "select count(*) as num from tpl_model_network ";
11602
+ var query = "select count(*) as num from tpl_model_networks ";
11603
11603
  query += "where device_type = '" + dev_type + "' and device_manifacturer = '" + dev_manifacturer + "' and device_model = '" + dev_model + "'";
11604
11604
  return query;
11605
11605
  }
11606
11606
 
11607
11607
  function existNetworkTemplateMySQL(dev_model, dev_manifacturer, dev_type) {
11608
- var query = "select count(*) as num from tpl_model_network ";
11608
+ var query = "select count(*) as num from tpl_model_networks ";
11609
11609
  query += "where device_type = :dev_type and device_manifacturer = :dev_manifacturer and device_model = :dev_model";
11610
11610
  return query;
11611
11611
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "2.0.95",
7
+ "version": "2.0.96",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",