alsmanager_lib 2.0.71 → 2.0.72
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
|
@@ -2121,12 +2121,12 @@ function getDisplayPartProperties(db_used, id_device) {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
|
|
2123
2123
|
function existsDisplayPartPropertiesSQLite(id_device) {
|
|
2124
|
-
var query = "select count(*) from display_part ";
|
|
2124
|
+
var query = "select count(*) as num from display_part ";
|
|
2125
2125
|
query += "where id_device = " + id_device;
|
|
2126
2126
|
return query;
|
|
2127
2127
|
}
|
|
2128
2128
|
function existsDisplayPartPropertiesMySQL(id_device) {
|
|
2129
|
-
var query = "select count(*) from display_part ";
|
|
2129
|
+
var query = "select count(*) as num from display_part ";
|
|
2130
2130
|
query += "where id_device = :id_device";
|
|
2131
2131
|
return query;
|
|
2132
2132
|
}
|
|
@@ -2218,13 +2218,13 @@ function updateDisplayPartProperties(db_used, id_device, dev_prop) {
|
|
|
2218
2218
|
// End Manage Display Part Properties
|
|
2219
2219
|
// Manage Display Properties
|
|
2220
2220
|
function existsDisplayPropertiesSQLite(id_device) {
|
|
2221
|
-
var query = "select count(*) from device_monitor ";
|
|
2221
|
+
var query = "select count(*) as num from device_monitor ";
|
|
2222
2222
|
query += "where id_device = " + id_device;
|
|
2223
2223
|
return query;
|
|
2224
2224
|
}
|
|
2225
2225
|
|
|
2226
2226
|
function existsDisplayPropertiesMySQL(id_device) {
|
|
2227
|
-
var query = "select count(*) from device_monitor ";
|
|
2227
|
+
var query = "select count(*) as num from device_monitor ";
|
|
2228
2228
|
query += "where id_device = :id_device";
|
|
2229
2229
|
return query;
|
|
2230
2230
|
}
|