alsmanager_lib 3.0.225 → 3.0.226

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 +8 -0
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -4421,6 +4421,13 @@ function getDeviceAnnotationsByIdDevice(id_device) {
4421
4421
  query += "order by date_annotation";
4422
4422
  return query;
4423
4423
  }
4424
+
4425
+ function selectDeviceAnnotationsById(id_annot) {
4426
+ var query = "select da.id, da.date_annotation, da.annotation, da.annotation_type from device_annotations da ";
4427
+ query += "where id = " + id_annot;
4428
+ return query;
4429
+ }
4430
+
4424
4431
  function insertDeviceAnnotation(id_device, date_annot, annot, annot_type) {
4425
4432
  var query = "insert into device_annotations (id_device, date_annotation, annotation, annotation_type) values (";
4426
4433
  var dt_str = convertDateToStringDB(date_annot);
@@ -17378,6 +17385,7 @@ module.exports = {
17378
17385
  queryDeviceById,
17379
17386
  queryDeviceByIdentificativo,
17380
17387
  getDeviceAnnotationsByIdDevice,
17388
+ selectDeviceAnnotationsById,
17381
17389
  insertDeviceAnnotation,
17382
17390
  updateDeviceAnnotation,
17383
17391
  removeDeviceAnnotation,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "3.0.225",
7
+ "version": "3.0.226",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",