alsmanager_lib 3.0.22 → 3.0.23

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 +6 -6
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -1224,7 +1224,7 @@ function getVoIPDevices() {
1224
1224
 
1225
1225
  // End manage Voip
1226
1226
  // Software management
1227
- function getSoftwares(maker, model, platform, licence_type) {
1227
+ function getSoftwares(db_used, maker, model, platform, licence_type) {
1228
1228
  var query = "select id, maker, model, support, platform, release_year, version, build_no, licence_type, licence_key, expired_date, is_pnrr, inv_ict3_number, serial_no ";
1229
1229
  query += "from softwares ";
1230
1230
  query += "where (is_removed is null or is_removed = 0) ";
@@ -1242,21 +1242,21 @@ function getSoftwares(maker, model, platform, licence_type) {
1242
1242
  }
1243
1243
  return query;
1244
1244
  }
1245
- function getSoftwareByCodice(codice) {
1245
+ function getSoftwareByCodice(db_used, codice) {
1246
1246
  var query = "select id, maker, model, support, platform, release_year, version, build_no, licence_type, licence_key, expired_date, is_pnrr, inv_ict3_number, serial_no ";
1247
1247
  query += "from softwares ";
1248
1248
  query += "where (is_removed is null or is_removed = 0) ";
1249
1249
  query += "and inv_ict3_number = '" + codice + "' or serial_no = '" + codice + "'";
1250
1250
  return query;
1251
1251
  }
1252
- function getSoftwareById(id_sw) {
1252
+ function getSoftwareById(db_used, id_sw) {
1253
1253
  var query = "select id, maker, model, support, platform, release_year, version, build_no, licence_type, licence_key, expired_date, is_pnrr, inv_ict3_number, serial_no ";
1254
1254
  query += "from softwares ";
1255
1255
  query += "where (is_removed is null or is_removed = 0) ";
1256
1256
  query += "and id = " + id_sw;
1257
1257
  return query;
1258
1258
  }
1259
- function insertSoftware(software) {
1259
+ function insertSoftware(db_used, software) {
1260
1260
  var query = "insert into softwares (maker, model, support, platform, release_year, version, build_no, licence_type, licence_key, expired_date, is_pnrr, inv_ict3_number, serial_no) values (";
1261
1261
  query += "'" + software.marca + "', ";
1262
1262
  query += "'" + software.modello + "', ";
@@ -1275,7 +1275,7 @@ function insertSoftware(software) {
1275
1275
  return query;
1276
1276
  }
1277
1277
 
1278
- function updateSoftware(id_sw, software) {
1278
+ function updateSoftware(db_used, id_sw, software) {
1279
1279
  var query = "update softwares set ";
1280
1280
  query += "maker = '" + software.marca + "', ";
1281
1281
  query += "model = '" + software.modello + "', ";
@@ -1294,7 +1294,7 @@ function updateSoftware(id_sw, software) {
1294
1294
  return query;
1295
1295
  }
1296
1296
 
1297
- function removeSoftware(id_sw) {
1297
+ function removeSoftware(db_used, id_sw) {
1298
1298
  var query = "update softwares set is_removed = 1 ";
1299
1299
  query += "where id = " + id_sw;
1300
1300
  return query;
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.22",
7
+ "version": "3.0.23",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",