alsmanager_lib 3.0.172 → 3.0.173

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 +3 -3
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -4243,7 +4243,7 @@ function queryDeviceByIdentificativo(db_used, identificativo) {
4243
4243
 
4244
4244
  //Get Device Status
4245
4245
  function queryDeviceStatusSQLite(id_device, date_ref) {
4246
- var query = "select case when status is null then 0 else status end as stato, date_status from device_usage du ";
4246
+ var query = "select case when status is null then 0 else status end as stato, date_start, date_end from device_usage du ";
4247
4247
  query += "where du.id_device = " + id_device + " ";
4248
4248
  if (date_ref) {
4249
4249
  switch (date_ref) {
@@ -4260,7 +4260,7 @@ function queryDeviceStatusSQLite(id_device, date_ref) {
4260
4260
  return query;
4261
4261
  }
4262
4262
  function queryDeviceStatusMySQL(id_device, date_ref) {
4263
- var query = "select case when status is null then 0 else status end as stato, date_status from device_usage du ";
4263
+ var query = "select case when status is null then 0 else status end as stato, date_start, date_end from device_usage du ";
4264
4264
  query += "where du.id_device = :id_device ";
4265
4265
  if (date_ref) {
4266
4266
  switch (date_ref) {
@@ -4277,7 +4277,7 @@ function queryDeviceStatusMySQL(id_device, date_ref) {
4277
4277
  return query;
4278
4278
  }
4279
4279
  function queryDeviceStatusMySQL2(id_device, date_ref) {
4280
- var query = "select case when status is null then 0 else status end as stato, date_status from device_usage du ";
4280
+ var query = "select case when status is null then 0 else status end as stato, date_start, date_end from device_usage du ";
4281
4281
  query += "where du.id_device = " + id_device + " ";
4282
4282
  if (date_ref) {
4283
4283
  switch (date_ref) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "3.0.172",
7
+ "version": "3.0.173",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",