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.
Files changed (2) hide show
  1. package/lib/modules.js +2 -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, MAX(date_status), count(*) as num from device_usage du ";
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, MAX(date_status), count(*) as num from device_usage du ";
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alsmanager_lib",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "description": "Funzioni per ALSManager",
5
5
  "license": "ISC",
6
6
  "author": "Luca Cattani",