alsmanager_lib 2.0.68 → 2.0.69

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 +4 -2
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -1619,12 +1619,14 @@ function existPartInConfig(db_used, id_device, id_conf, id_part, part_type) {
1619
1619
  // Disk usage
1620
1620
  function getDiskUsagesByIdStorageSQLite(id_storage) {
1621
1621
  var query = "select id, date_ref, id_device, id_storage, size_unit, available_space from disk_usage ";
1622
- query += "where id_storage = " + id_storage;
1622
+ query += "where id_storage = " + id_storage + " ";
1623
+ query += "order by id desc";
1623
1624
  return query
1624
1625
  }
1625
1626
  function getDiskUsagesByIdStorageMySQL(id_storage) {
1626
1627
  var query = "select id, date_ref, id_device, id_storage, size_unit, available_space from disk_usage ";
1627
- query += "where id_storage = :id_storage";
1628
+ query += "where id_storage = :id_storage ";
1629
+ query += "order by id desc";
1628
1630
  return query
1629
1631
  }
1630
1632
  function getDiskUsagesByIdStorage(db_used, id_storage) {
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.68",
7
+ "version": "2.0.69",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",