Skip to content

Commit

Permalink
use options=flowControl when update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Dec 18, 2024
1 parent 68ac6db commit 5f517cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/services/ngsi/entities-NGSI-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ function sendUpdateValueNgsi2(entityName, originMeasures, originTypeInformation,
}
} // end for (let measures of originMeasures)

let url = '/v2/op/update';
let url = '/v2/op/update?options=flowControl';
let options = NGSIUtils.createRequestObject(url, originTypeInformation, token);
options.json = payload;

Expand All @@ -679,7 +679,7 @@ function sendUpdateValueNgsi2(entityName, originMeasures, originTypeInformation,

if (!multi) {
// recreate options object to use single entity update
url = '/v2/entities?options=upsert';
url = '/v2/entities?options=upsert,flowControl';
options = NGSIUtils.createRequestObject(url, originTypeInformation, token);
delete payload.actionType;

Expand Down

0 comments on commit 5f517cf

Please sign in to comment.