alsmanager_lib 2.0.71 → 2.0.73

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 +8 -6
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -2121,12 +2121,12 @@ function getDisplayPartProperties(db_used, id_device) {
2121
2121
  }
2122
2122
 
2123
2123
  function existsDisplayPartPropertiesSQLite(id_device) {
2124
- var query = "select count(*) from display_part ";
2124
+ var query = "select count(*) as num from display_part ";
2125
2125
  query += "where id_device = " + id_device;
2126
2126
  return query;
2127
2127
  }
2128
2128
  function existsDisplayPartPropertiesMySQL(id_device) {
2129
- var query = "select count(*) from display_part ";
2129
+ var query = "select count(*) as num from display_part ";
2130
2130
  query += "where id_device = :id_device";
2131
2131
  return query;
2132
2132
  }
@@ -2182,7 +2182,8 @@ function updateDisplayPartPropertiesSQLite(id_device, dev_prop) {
2182
2182
  query += "touch = " + dev_prop.touch + ", ";
2183
2183
  query += "size_inch = " + dev_prop.size + ", ";
2184
2184
  query += "format = '" + dev_prop.format + "', ";
2185
- query += "technology = '" + dev_prop.tecnology + "' ";
2185
+ query += "technology = '" + dev_prop.tecnology + "', ";
2186
+ query += "is_removable = " + dev_prop.is_removable + " ";
2186
2187
  query += "where id_device = " + id_device;
2187
2188
  return query;
2188
2189
  }
@@ -2193,7 +2194,8 @@ function updateDisplayPartPropertiesMySQL() {
2193
2194
  query += "touch = :touch, ";
2194
2195
  query += "size_inch = :size, ";
2195
2196
  query += "format = :format, ";
2196
- query += "technology = :tecnology ";
2197
+ query += "technology = :tecnology, ";
2198
+ query += "is_removable = :is_removable ";
2197
2199
  query += "where id_device = :id_device";
2198
2200
  return query;
2199
2201
  }
@@ -2218,13 +2220,13 @@ function updateDisplayPartProperties(db_used, id_device, dev_prop) {
2218
2220
  // End Manage Display Part Properties
2219
2221
  // Manage Display Properties
2220
2222
  function existsDisplayPropertiesSQLite(id_device) {
2221
- var query = "select count(*) from device_monitor ";
2223
+ var query = "select count(*) as num from device_monitor ";
2222
2224
  query += "where id_device = " + id_device;
2223
2225
  return query;
2224
2226
  }
2225
2227
 
2226
2228
  function existsDisplayPropertiesMySQL(id_device) {
2227
- var query = "select count(*) from device_monitor ";
2229
+ var query = "select count(*) as num from device_monitor ";
2228
2230
  query += "where id_device = :id_device";
2229
2231
  return query;
2230
2232
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "2.0.71",
7
+ "version": "2.0.73",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",