alsmanager_lib 1.0.97 → 1.0.98

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 +2 -2
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -1748,7 +1748,7 @@ function getLastPCPropertiesInsertedSQLite(id_device) {
1748
1748
  query += "from device_pc dp ";
1749
1749
  query += "left join devices d on dp.id_device = d.id ";
1750
1750
  query += "where dp.id_device = " + id_device + " ";
1751
- query += "order by id desc LIMIT 1";
1751
+ query += "order by dp.id desc LIMIT 1";
1752
1752
  return query;
1753
1753
  }
1754
1754
  function getLastPCPropertiesInsertedMySQL(id_device) {
@@ -1759,7 +1759,7 @@ function getLastPCPropertiesInsertedMySQL(id_device) {
1759
1759
  query += "from device_pc dp ";
1760
1760
  query += "left join devices d on dp.id_device = d.id ";
1761
1761
  query += "where dp.id_device = :id_device ";
1762
- query += "order by id desc LIMIT 1";
1762
+ query += "order by dp.id desc LIMIT 1";
1763
1763
  return query;
1764
1764
  }
1765
1765
  function getLastPCPropertiesInserted(db_used, id_device) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alsmanager_lib",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "Funzioni per ALSManager",
5
5
  "license": "ISC",
6
6
  "author": "Luca Cattani",