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.
- package/lib/modules.js +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
|
|
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
|
|
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
|
}
|