Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

feat(connectivity.eligibility): update call test building endpoint #299

Merged
merged 1 commit into from
Jul 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
});

Expand All @@ -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,
},
Expand Down