Skip to content

Commit

Permalink
declare typeInformation into loop
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed May 14, 2024
1 parent 1bbd168 commit 8d7fea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/ngsi/entities-NGSI-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8d7fea1

Please sign in to comment.