alsmanager_lib 1.0.85 → 1.0.86

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 +12 -5
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -1156,7 +1156,7 @@ function removeDeviceConfiguration(db_used, id_conf) {
1156
1156
  return query;
1157
1157
  }
1158
1158
  //
1159
- function insertPartChangedSQLite(id_conf, part_type, id_part, operation, id_part_replaced) {
1159
+ function insertPartChangedSQLite(id_conf, id_part, part_type, operation, id_part_replaced) {
1160
1160
  var query = "insert into change_config (id_conf, part_type, id_part, operation, id_part_replaced) values (";
1161
1161
  query += id_conf + ", ";
1162
1162
  query += "'" + part_type + "', ";
@@ -1167,17 +1167,24 @@ function insertPartChangedSQLite(id_conf, part_type, id_part, operation, id_part
1167
1167
  return query;
1168
1168
  }
1169
1169
  function insertPartChangedMySQL() {
1170
-
1170
+ var query = "insert into change_config (id_conf, part_type, id_part, operation, id_part_replaced) values (";
1171
+ query += ":id_conf, ";
1172
+ query += ":part_type, ";
1173
+ query += ":id_part, ";
1174
+ query += ":operation, ";
1175
+ query += ":id_part_replaced";
1176
+ query += ")";
1177
+ return query;
1171
1178
  }
1172
- function insertPartChanged(db_used, id_conf, part_type, id_part, operation, id_part_replaced) {
1179
+ function insertPartChanged(db_used, id_conf, id_part, part_type, operation, id_part_replaced) {
1173
1180
  var query = "";
1174
1181
  if (db_used) {
1175
1182
  switch (db_used) {
1176
1183
  case 'SQLITE':
1177
- query = insertPartChangedSQLite(id_conf, part_type, id_part, operation, id_part_replaced);
1184
+ query = insertPartChangedSQLite(id_conf, id_part, part_type, operation, id_part_replaced);
1178
1185
  break;
1179
1186
  case 'MYSQL':
1180
- query = insertPartChangedMySQL(id_conf, part_type, id_part, operation, id_part_replaced);
1187
+ query = insertPartChangedMySQL(id_conf, id_part, part_type, operation, id_part_replaced);
1181
1188
  break;
1182
1189
  }
1183
1190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alsmanager_lib",
3
- "version": "1.0.85",
3
+ "version": "1.0.86",
4
4
  "description": "Funzioni per ALSManager",
5
5
  "license": "ISC",
6
6
  "author": "Luca Cattani",