alsmanager_lib 1.0.62 → 1.0.63

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 +4 -8
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -1497,12 +1497,10 @@ function queryDeviceStatusSQLite(id_device, date_ref) {
1497
1497
  if (date_ref) {
1498
1498
  switch (date_ref) {
1499
1499
  case "current":
1500
- query += " and ";
1501
- query += " (date('now') >= du.date_status";
1500
+ query += "and date('now') >= du.date_status";
1502
1501
  break;
1503
1502
  default:
1504
- query += " and ";
1505
- query += " ('" + date_ref + "' >= du.date_status)";
1503
+ query += "and '" + date_ref + "' >= du.date_status";
1506
1504
  break;
1507
1505
 
1508
1506
  }
@@ -1515,12 +1513,10 @@ function queryDeviceStatusMySQL(id_device, date_ref) {
1515
1513
  if (date_ref) {
1516
1514
  switch (date_ref) {
1517
1515
  case "current":
1518
- query += " and ";
1519
- query += " (CURDATE() >= du.date_status)";
1516
+ query += "and (CURDATE() >= du.date_status";
1520
1517
  break;
1521
1518
  default:
1522
- query += " and ";
1523
- query += " (:date_ref >= du.date_status)";
1519
+ query += "and :date_ref >= du.date_status";
1524
1520
  break;
1525
1521
 
1526
1522
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alsmanager_lib",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "description": "Funzioni per ALSManager",
5
5
  "license": "ISC",
6
6
  "author": "Luca Cattani",