From 8d7fea1e2a003b2b7d648b7b1a794722edc3fb8f Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Tue, 14 May 2024 11:34:52 +0200 Subject: [PATCH] declare typeInformation into loop --- lib/services/ngsi/entities-NGSI-v2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/ngsi/entities-NGSI-v2.js b/lib/services/ngsi/entities-NGSI-v2.js index 1870a997f..5330ca9d8 100644 --- a/lib/services/ngsi/entities-NGSI-v2.js +++ b/lib/services/ngsi/entities-NGSI-v2.js @@ -303,7 +303,7 @@ function sendUpdateValueNgsi2(entityName, originMeasures, originTypeInformation, let plainMeasures = null; //will contain measures POJO //Make a clone and overwrite - typeInformation = JSON.parse(JSON.stringify(originTypeInformation)); + let typeInformation = JSON.parse(JSON.stringify(originTypeInformation)); //Rename all measures with matches with id and type to measure_id and measure_type for (let measure of measures) {