Skip to content

Commit

Permalink
Update lib/services/ngsi/entities-NGSI-v2.js
Browse files Browse the repository at this point in the history
Co-authored-by: Fermín Galán Márquez <[email protected]>
  • Loading branch information
AlvaroVega and fgalan authored Aug 7, 2024
1 parent ad3e377 commit 293d876
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/services/ngsi/entities-NGSI-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ function sendUpdateValueNgsi2(entityName, originMeasures, originTypeInformation,
return initObj;
}
}
//it returns a flat object from an Metadata Object
//it returns a metadata object using the same structure described
// at https://github.com/telefonicaid/fiware-orion/blob/master/doc/manuals/orion-api.md#metadata-support
function reduceMetadataAttrToPlainObject(attrs, initObj = {}) {
if (attrs !== undefined && Array.isArray(attrs)) {
return attrs.reduce((result, item) => {
Expand Down

0 comments on commit 293d876

Please sign in to comment.