alsmanager_lib 1.0.23 → 1.0.24
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 +2 -2
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -2914,7 +2914,7 @@ function assignDevicesToDismissioneSQLite(id_dismiss, list_id_devdismiss) {
|
|
|
2914
2914
|
query += "where id in (";
|
|
2915
2915
|
for (let index = 0; index < list_id_devdismiss.length; index++) {
|
|
2916
2916
|
query += list_id_devdismiss[index];
|
|
2917
|
-
if (index < list_id_devdismiss.length) {
|
|
2917
|
+
if (index + 1 < list_id_devdismiss.length) {
|
|
2918
2918
|
query += ", ";
|
|
2919
2919
|
}
|
|
2920
2920
|
}
|
|
@@ -2930,7 +2930,7 @@ function assignDevicesToDismissioneMySQL(id_dismiss, list_id_devdismiss) {
|
|
|
2930
2930
|
query += "where id in (";
|
|
2931
2931
|
for (let index = 0; index < list_id_devdismiss.length; index++) {
|
|
2932
2932
|
query += list_id_devdismiss[index];
|
|
2933
|
-
if (index < list_id_devdismiss.length) {
|
|
2933
|
+
if (index + 1 < list_id_devdismiss.length) {
|
|
2934
2934
|
query += ", ";
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|