Skip to content

Commit

Permalink
Merge pull request #164 from openBackhaul:schiavi-siae/issue163
Browse files Browse the repository at this point in the history
Return value of /v1/provide-list-of-connected-devices
  • Loading branch information
schiavi-siae authored Nov 30, 2023
2 parents 8198483 + a8bb9ff commit 4625d0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions server/service/IndividualServicesService.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ const findNotConnectedElements = async function (listJsonES, listJsonMD) {
else {
listES = listJsonES["mountName-list"];
if (listJsonMD != null) {
listMD = listJsonMD["mountName-list"];
listMD = listJsonMD["mount-name-list"];

// Filter the elements present in listES but not in listMD
let missingElements = listES.filter(element => !listMD.includes(element));
Expand Down Expand Up @@ -321,7 +321,7 @@ function areEqualArray(listJsonES, listJsonMD) {
}

if (listJsonMD != null) {
array2 = listJsonMD["mountName-list"];
array2 = listJsonMD["mount-name-list"];
}

if ((array1 != null) && (array2 != null)) {
Expand Down Expand Up @@ -553,7 +553,7 @@ const EmbeddingCausesRequestForListOfDevicesAtMwdi = async function (user, origi
headers: httpRequestHeaderAuth
});

console.log("Number of connected devices = " + response.data['mountName-list'].length);
console.log("Number of connected devices = " + response.data['mount-name-list'].length);
resolve(response.data);
} catch (error) {
resolve(error);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ async function MATRCycle(logging_level) {

try {
let deviceListMount = await individualServices.updateCurrentConnectedEquipment(user, originator, xCorrelator, traceIndicator, customerJourney);
deviceList = deviceListMount['mountName-list'];
deviceList = deviceListMount['mount-name-list'];

slidingWindowSize = (slidingWindowSizeDb > deviceList.length) ? deviceList.length : slidingWindowSizeDb;

Expand Down

0 comments on commit 4625d0b

Please sign in to comment.