alsmanager_lib 3.0.163 → 3.0.164

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
@@ -12175,7 +12175,7 @@ function getSitesWithDatesFromDeviceSQLite(id_device, date_ref) {
12175
12175
  query += "join site_destinations sd on sd.id_site = ds.id_site ";
12176
12176
  query += "join sites s on s.id = sd.id_site ";
12177
12177
  query += "where ds.id_device = " + id_device + " ";
12178
- query += "and ds.date_start <= '" + dr_str + "' and ds.date_end >= '" + dr_str + "' ";
12178
+ query += "and sd.date_start <= '" + dr_str + "' and sd.date_end >= '" + dr_str + "' ";
12179
12179
  query += " order by date_in";
12180
12180
  return query;
12181
12181
  }
@@ -12194,7 +12194,7 @@ function getSitesWithDatesFromDeviceMySQL(id_device, date_ref) {
12194
12194
  query += "join site_destinations sd on sd.id_site = ds.id_site ";
12195
12195
  query += "join sites s on s.id = sd.id_site ";
12196
12196
  query += "where ds.id_device = :id_device ";
12197
- query += "and ds.date_start <= '" + dr_str + "' and ds.date_end >= '" + dr_str + "' ";
12197
+ query += "and sd.date_start <= '" + dr_str + "' and sd.date_end >= '" + dr_str + "' ";
12198
12198
  query += "order by date_in";
12199
12199
  return query;
12200
12200
  }
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.163",
7
+ "version": "3.0.164",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",