alsmanager_lib 3.0.116 → 3.0.117

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 +5 -2
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -11180,11 +11180,14 @@ function updateSiteDestination(id_site, id_place, date_start, date_end, name, fu
11180
11180
  return query;
11181
11181
  }
11182
11182
 
11183
- function updateSiteDestinationAfterMove(id_site, id_place, date_start_ref) {
11183
+ function updateSiteDestinationAfterMove(id_site, id_place, date_start, name, funzione, date_start_ref) {
11184
11184
  var dt_end = convertDateToStringDB(date_start_ref);
11185
+ var dt_start = convertDateToStringDB(date_start);
11185
11186
  var query = "update site_destinations set ";
11186
11187
  query += "date_end = date('" + dt_end + "', '-1 day') ";
11187
- query += "where id_site = " + id_site + " and id_place = '" + id_place + "'";
11188
+ query += "where id_site = " + id_site + " and id_place = '" + id_place + "' ";
11189
+ query += "and date_start = '" + dt_start + "' ";
11190
+ query += "and name = '" + name + "' and type = '" + funzione + "'";
11188
11191
  return query;
11189
11192
  }
11190
11193
 
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.116",
7
+ "version": "3.0.117",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",