X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fapi%2Fcomposer.js;h=93cc5535178ef68048947f9f7d05779afd339b66;hp=e9e4be1da2bf96bbfd4c79d2284742098093f014;hb=15999cf835be1475fd72fddcfb34831f4173eb92;hpb=e7383e559c030b8572e3d2f7245e9b604c4a20dc diff --git a/skyquake/plugins/composer/api/composer.js b/skyquake/plugins/composer/api/composer.js index e9e4be1da..93cc55351 100644 --- a/skyquake/plugins/composer/api/composer.js +++ b/skyquake/plugins/composer/api/composer.js @@ -125,8 +125,7 @@ Composer.get = function(req) { response[0].descriptors = JSON.parse(result[0].body).collection['nsd:nsd']; if (result[2].body) { var data = JSON.parse(result[2].body); - if (data && data["nsr:ns-instance-opdata"] && data["nsr:ns-instance-opdata"]["rw-nsr:nsd-ref-count"]) { - var nsdRefCountCollection = data["nsr:ns-instance-opdata"]["rw-nsr:nsd-ref-count"]; + if (data && data["nsr:ns-instance-opdata"]) { response[0].descriptors.map(function(nsd) { if (!nsd["meta"]) { nsd["meta"] = {}; @@ -134,9 +133,6 @@ Composer.get = function(req) { if (typeof nsd['meta'] == 'string') { nsd['meta'] = JSON.parse(nsd['meta']); } - nsd["meta"]["instance-ref-count"] = _.findWhere(nsdRefCountCollection, { - "nsd-id-ref": nsd.id - })["instance-ref-count"]; }); } } @@ -487,7 +483,7 @@ PackageManager.copy = function(req) { } /** - * This methods retrieves the status of package operations. It takes an optional + * This methods retrieves the status of package operations. It takes an optional * transaction id (id) this if present will return only that status otherwise * an array of status' will be response. */