alsmanager_lib 2.0.70 → 2.0.72

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
@@ -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
  }
@@ -2149,12 +2149,12 @@ function existsDisplayPartProperties(db_used, id_device) {
2149
2149
  }
2150
2150
 
2151
2151
  function insertDisplayPartPropertiesSQLite(id_device, dev_prop) {
2152
- var query = "insert into display_part (id_device, touch, size_inch, format, tecnology, is_removable) values ";
2152
+ var query = "insert into display_part (id_device, touch, size_inch, format, technology, is_removable) values ";
2153
2153
  query += "(" + id_device + ", " + dev_prop.touch + ", " + dev_prop.size + ", '" + dev_prop.format + "', '" + dev_prop.technology + "', " + dev_prop.is_removable + ")";
2154
2154
  return query;
2155
2155
  }
2156
2156
  function insertDisplayPartPropertiesMySQL() {
2157
- var query = "insert into display_part (id_device, touch, size_inch, format, tecnology, is_removable) values ";
2157
+ var query = "insert into display_part (id_device, touch, size_inch, format, technology, is_removable) values ";
2158
2158
  query += "(:id_device, :touch, :size, :format, :technology, :is_removable)";
2159
2159
  return query;
2160
2160
  }
@@ -2218,13 +2218,13 @@ function updateDisplayPartProperties(db_used, id_device, dev_prop) {
2218
2218
  // End Manage Display Part Properties
2219
2219
  // Manage Display Properties
2220
2220
  function existsDisplayPropertiesSQLite(id_device) {
2221
- var query = "select count(*) from device_monitor ";
2221
+ var query = "select count(*) as num from device_monitor ";
2222
2222
  query += "where id_device = " + id_device;
2223
2223
  return query;
2224
2224
  }
2225
2225
 
2226
2226
  function existsDisplayPropertiesMySQL(id_device) {
2227
- var query = "select count(*) from device_monitor ";
2227
+ var query = "select count(*) as num from device_monitor ";
2228
2228
  query += "where id_device = :id_device";
2229
2229
  return query;
2230
2230
  }
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.70",
7
+ "version": "2.0.72",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",