alsmanager_lib 1.0.64 → 1.0.65
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 +2 -2
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -1492,7 +1492,7 @@ function queryDeviceByIdentificativo(db_used, identificativo) {
|
|
|
1492
1492
|
|
|
1493
1493
|
//Get Device Status
|
|
1494
1494
|
function queryDeviceStatusSQLite(id_device, date_ref) {
|
|
1495
|
-
var query = "select case when status is null then 0 else status end as stato,
|
|
1495
|
+
var query = "select case when status is null then 0 else status end as stato, date_status from device_usage du ";
|
|
1496
1496
|
query += "where du.id_device = " + id_device + " ";
|
|
1497
1497
|
if (date_ref) {
|
|
1498
1498
|
switch (date_ref) {
|
|
@@ -1509,7 +1509,7 @@ function queryDeviceStatusSQLite(id_device, date_ref) {
|
|
|
1509
1509
|
return query;
|
|
1510
1510
|
}
|
|
1511
1511
|
function queryDeviceStatusMySQL(id_device, date_ref) {
|
|
1512
|
-
var query = "select case when status is null then 0 else status end as stato,
|
|
1512
|
+
var query = "select case when status is null then 0 else status end as stato, date_status from device_usage du ";
|
|
1513
1513
|
query += "where du.id_device = :id_device ";
|
|
1514
1514
|
if (date_ref) {
|
|
1515
1515
|
switch (date_ref) {
|