alsmanager_lib 3.0.84 → 3.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 +4 -4
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -4287,14 +4287,14 @@ function writeDeviceProperties(db_used, id_device, raw_data) {
4287
4287
  //End Write Device properties
4288
4288
  //Read Device properties
4289
4289
  function readDevicePropertiesSQLite(id_device) {
4290
- var query = "select raw_properties from device_properties ";
4290
+ var query = "select id, raw_properties from device_properties ";
4291
4291
  query += "where id_device = " + id_device + " ";
4292
4292
  query += "and (is_imported is null or is_imported = 0)"
4293
4293
  return query;
4294
4294
  }
4295
4295
 
4296
4296
  function readDevicePropertiesMySQL() {
4297
- var query = "select raw_properties from device_properties ";
4297
+ var query = "select id, raw_properties from device_properties ";
4298
4298
  query += "where id_device = :id_device ";
4299
4299
  query += "and (is_imported is null or is_imported = 0)"
4300
4300
  return query;
@@ -4320,7 +4320,7 @@ function readDeviceProperties(db_used, id_device) {
4320
4320
  //Update Device Properties after import
4321
4321
  function updateDevicePropertiesSQLite(id_prop, is_imported, id_config) {
4322
4322
  var query = "update device_properties set ";
4323
- query += "is_imported " + is_imported + " ";
4323
+ query += "is_imported = " + is_imported + " ";
4324
4324
  if (id_config) {
4325
4325
  query += ", id_config = " + id_config + " ";
4326
4326
  }
@@ -4330,7 +4330,7 @@ function updateDevicePropertiesSQLite(id_prop, is_imported, id_config) {
4330
4330
 
4331
4331
  function updateDevicePropertiesMySQL(id_prop, is_imported, id_config) {
4332
4332
  var query = "update device_properties set ";
4333
- query += "is_imported :is_imported ";
4333
+ query += "is_imported = :is_imported ";
4334
4334
  if (id_config) {
4335
4335
  query += ", id_config = :id_config ";
4336
4336
  }
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.84",
7
+ "version": "3.0.86",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",