alsmanager_lib 2.0.69 → 2.0.71
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 +6 -2
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -2123,10 +2123,12 @@ function getDisplayPartProperties(db_used, id_device) {
|
|
|
2123
2123
|
function existsDisplayPartPropertiesSQLite(id_device) {
|
|
2124
2124
|
var query = "select count(*) from display_part ";
|
|
2125
2125
|
query += "where id_device = " + id_device;
|
|
2126
|
+
return query;
|
|
2126
2127
|
}
|
|
2127
2128
|
function existsDisplayPartPropertiesMySQL(id_device) {
|
|
2128
2129
|
var query = "select count(*) from display_part ";
|
|
2129
2130
|
query += "where id_device = :id_device";
|
|
2131
|
+
return query;
|
|
2130
2132
|
}
|
|
2131
2133
|
function existsDisplayPartProperties(db_used, id_device) {
|
|
2132
2134
|
var query = "";
|
|
@@ -2147,13 +2149,14 @@ function existsDisplayPartProperties(db_used, id_device) {
|
|
|
2147
2149
|
}
|
|
2148
2150
|
|
|
2149
2151
|
function insertDisplayPartPropertiesSQLite(id_device, dev_prop) {
|
|
2150
|
-
var query = "insert into display_part (id_device, touch, size_inch, format,
|
|
2152
|
+
var query = "insert into display_part (id_device, touch, size_inch, format, technology, is_removable) values ";
|
|
2151
2153
|
query += "(" + id_device + ", " + dev_prop.touch + ", " + dev_prop.size + ", '" + dev_prop.format + "', '" + dev_prop.technology + "', " + dev_prop.is_removable + ")";
|
|
2152
2154
|
return query;
|
|
2153
2155
|
}
|
|
2154
2156
|
function insertDisplayPartPropertiesMySQL() {
|
|
2155
|
-
var query = "insert into display_part (id_device, touch, size_inch, format,
|
|
2157
|
+
var query = "insert into display_part (id_device, touch, size_inch, format, technology, is_removable) values ";
|
|
2156
2158
|
query += "(:id_device, :touch, :size, :format, :technology, :is_removable)";
|
|
2159
|
+
return query;
|
|
2157
2160
|
}
|
|
2158
2161
|
function insertDisplayPartProperties(db_used, id_device, dev_prop) {
|
|
2159
2162
|
var query = "";
|
|
@@ -2334,6 +2337,7 @@ function updateDisplayPropertiesMySQL() {
|
|
|
2334
2337
|
query += "format = :format, ";
|
|
2335
2338
|
query += "technology = :tecnology ";
|
|
2336
2339
|
query += "where id_device = :id_device";
|
|
2340
|
+
return query;
|
|
2337
2341
|
}
|
|
2338
2342
|
|
|
2339
2343
|
function updateDisplayProperties(db_used, id_device, dev_prop) {
|