alsmanager_lib 2.0.74 → 2.0.75
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 +8 -2
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -2284,11 +2284,17 @@ function getDisplayProperties(db_used, id_device) {
|
|
|
2284
2284
|
function createDisplayPropertiesMySQLObj(id_device, dev_prop) {
|
|
2285
2285
|
var obj = {};
|
|
2286
2286
|
obj.id_device = id_device;
|
|
2287
|
-
|
|
2287
|
+
if (!dev_prop.touch || dev_prop.touch == null)
|
|
2288
|
+
obj.touch = 0;
|
|
2289
|
+
else
|
|
2290
|
+
obj.touch = dev_prop.touch;
|
|
2288
2291
|
obj.format = dev_prop.formato;
|
|
2289
2292
|
obj.size = dev_prop.dimensione;
|
|
2290
2293
|
obj.technology = dev_prop.tecnologia;
|
|
2291
|
-
|
|
2294
|
+
if (!dev_prop.rimovibile || dev_prop.rimovibile == null)
|
|
2295
|
+
obj.is_removable = 0;
|
|
2296
|
+
else
|
|
2297
|
+
obj.is_removable = dev_prop.rimovibile;
|
|
2292
2298
|
return obj;
|
|
2293
2299
|
}
|
|
2294
2300
|
|