alsmanager_lib 3.0.144 → 3.0.146
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
|
@@ -2835,7 +2835,7 @@ function queryOSVersionByFilter(os) {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
|
|
2837
2837
|
function queryStoragesByFilter(tipo) {
|
|
2838
|
-
var query = "select distinct ds.storage_type, st.name as
|
|
2838
|
+
var query = "select distinct ds.storage_type as id, st.name as tipo from device_storages ds ";
|
|
2839
2839
|
query += "join storage_types st on st.id = ds.storage_type "
|
|
2840
2840
|
query += "left join devices d on ds.id_device = d.id "
|
|
2841
2841
|
query += "where d.type = '" + tipo + "' ";
|
|
@@ -2844,14 +2844,14 @@ function queryStoragesByFilter(tipo) {
|
|
|
2844
2844
|
}
|
|
2845
2845
|
|
|
2846
2846
|
function queryAddOnsByFilter() {
|
|
2847
|
-
var query = "select distinct da.addon_type, aty.name from device_addons da ";
|
|
2848
|
-
query += "join addon_types aty on aty.id = da.
|
|
2847
|
+
var query = "select distinct da.addon_type as id, aty.name as tipo from device_addons da ";
|
|
2848
|
+
query += "join addon_types aty on aty.id = da.addon_type "
|
|
2849
2849
|
query += "order by aty.name";
|
|
2850
2850
|
return query;
|
|
2851
2851
|
}
|
|
2852
2852
|
|
|
2853
2853
|
function queryNetworksByFilter() {
|
|
2854
|
-
var query = "select distinct dn.net_type, nty.name from device_networks dn ";
|
|
2854
|
+
var query = "select distinct dn.net_type as id, nty.name as tipo from device_networks dn ";
|
|
2855
2855
|
query += "join network_types nty on nty.name = dn.net_type "
|
|
2856
2856
|
query += "order by nty.name";
|
|
2857
2857
|
return query;
|