From aa1abea48c58c5aa884f4b814c26dd16915ecbf9 Mon Sep 17 00:00:00 2001 From: Stephanie Moallic Date: Thu, 16 Jul 2020 17:19:45 +0200 Subject: [PATCH] feat(connectivity.eligibility): update call test building endpoint Signed-off-by: Stephanie Moallic --- .../eligibility/connectivity-eligibility.v6.service.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/connectivity/eligibility/connectivity-eligibility.v6.service.js b/src/api/connectivity/eligibility/connectivity-eligibility.v6.service.js index 6bb5401f..f619885e 100644 --- a/src/api/connectivity/eligibility/connectivity-eligibility.v6.service.js +++ b/src/api/connectivity/eligibility/connectivity-eligibility.v6.service.js @@ -42,10 +42,11 @@ angular.module('ovh-api-services').service('OvhApiConnectivityEligibilityV6', ($ eligibility.testBuilding = function ($scope, opts) { const url = '/connectivity/eligibility/test/building'; + const pollerId = opts.index ? `${$scope.$id}${opts.index}` : $scope.$id; $scope.$on('$destroy', () => { Poller.kill({ - scope: $scope.$id, + scope: pollerId, }); }); @@ -61,7 +62,7 @@ angular.module('ovh-api-services').service('OvhApiConnectivityEligibilityV6', ($ return elem.status === 'error' || elem.status === 'ok'; }, }, - scope: $scope.$id, + scope: pollerId, method: 'POST', retryMaxAttempts: 3, },