alsmanager_lib 1.0.93 → 1.0.95
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 +8 -6
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -1196,9 +1196,10 @@ function removeDeviceConfiguration(db_used, id_conf) {
|
|
|
1196
1196
|
return query;
|
|
1197
1197
|
}
|
|
1198
1198
|
//
|
|
1199
|
-
function insertPartChangedSQLite(id_conf, id_part, part_type, operation, id_part_replaced) {
|
|
1200
|
-
var query = "insert into change_config (id_conf, part_type, id_part, operation, id_part_replaced) values (";
|
|
1199
|
+
function insertPartChangedSQLite(id_conf, id_device, id_part, part_type, operation, id_part_replaced) {
|
|
1200
|
+
var query = "insert into change_config (id_conf, id_device, part_type, id_part, operation, id_part_replaced) values (";
|
|
1201
1201
|
query += id_conf + ", ";
|
|
1202
|
+
query += id_device + ", ";
|
|
1202
1203
|
query += "'" + part_type + "', ";
|
|
1203
1204
|
query += id_part + ", ";
|
|
1204
1205
|
query += "'" + operation + "', ";
|
|
@@ -1207,8 +1208,9 @@ function insertPartChangedSQLite(id_conf, id_part, part_type, operation, id_part
|
|
|
1207
1208
|
return query;
|
|
1208
1209
|
}
|
|
1209
1210
|
function insertPartChangedMySQL() {
|
|
1210
|
-
var query = "insert into change_config (id_conf, part_type, id_part, operation, id_part_replaced) values (";
|
|
1211
|
+
var query = "insert into change_config (id_conf, id_device, part_type, id_part, operation, id_part_replaced) values (";
|
|
1211
1212
|
query += ":id_conf, ";
|
|
1213
|
+
query += ":id_device, ";
|
|
1212
1214
|
query += ":part_type, ";
|
|
1213
1215
|
query += ":id_part, ";
|
|
1214
1216
|
query += ":operation, ";
|
|
@@ -1216,15 +1218,15 @@ function insertPartChangedMySQL() {
|
|
|
1216
1218
|
query += ")";
|
|
1217
1219
|
return query;
|
|
1218
1220
|
}
|
|
1219
|
-
function insertPartChanged(db_used, id_conf, id_part, part_type, operation, id_part_replaced) {
|
|
1221
|
+
function insertPartChanged(db_used, id_conf, id_device, id_part, part_type, operation, id_part_replaced) {
|
|
1220
1222
|
var query = "";
|
|
1221
1223
|
if (db_used) {
|
|
1222
1224
|
switch (db_used) {
|
|
1223
1225
|
case 'SQLITE':
|
|
1224
|
-
query = insertPartChangedSQLite(id_conf, id_part, part_type, operation, id_part_replaced);
|
|
1226
|
+
query = insertPartChangedSQLite(id_conf, id_device, id_part, part_type, operation, id_part_replaced);
|
|
1225
1227
|
break;
|
|
1226
1228
|
case 'MYSQL':
|
|
1227
|
-
query = insertPartChangedMySQL(id_conf, id_part, part_type, operation, id_part_replaced);
|
|
1229
|
+
query = insertPartChangedMySQL(id_conf, id_device, id_part, part_type, operation, id_part_replaced);
|
|
1228
1230
|
break;
|
|
1229
1231
|
}
|
|
1230
1232
|
}
|