Skip to content

Commit

Permalink
Update entities-NGSI-v2.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KeshavSoni2511 committed Feb 22, 2024
1 parent edc4fc4 commit 7b506da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/services/ngsi/entities-NGSI-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ function sendUpdateValueNgsi2(entityName, measures, typeInformation, token, call
jexlctxt = reduceAttrToPlainObject(idTypeSSSList, jexlctxt);

//Managing timestamp (mustInsertTimeInstant flag to decide if we should insert Timestamp later on)
const mustInsertTimeInstant = typeInformation.timestamp !== undefined ? typeInformation.timestamp : false;
const mustInsertTimeInstant =
typeInformation.timestamp !== undefined
? typeInformation.timestamp
: false;

if (mustInsertTimeInstant) {
//remove TimeInstant from measures
Expand Down

0 comments on commit 7b506da

Please sign in to comment.