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.
- package/lib/modules.js +4 -4
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
}
|