diff --git a/src/telephony/line/phone/telephony-line-phone.lexi.service.js b/src/telephony/line/phone/telephony-line-phone.lexi.service.js index 091d06ef..196b3a1a 100644 --- a/src/telephony/line/phone/telephony-line-phone.lexi.service.js +++ b/src/telephony/line/phone/telephony-line-phone.lexi.service.js @@ -10,7 +10,7 @@ angular.module("ovh-api-services").service("OvhApiTelephonyLinePhoneLexi", funct } }; - return $resource("/telephony/:billingAccount/line/:serviceName/phone", { + var resource = $resource("/telephony/:billingAccount/line/:serviceName/phone", { billingAccount: "@billingAccount", serviceName: "@serviceName" }, { @@ -51,4 +51,11 @@ angular.module("ovh-api-services").service("OvhApiTelephonyLinePhoneLexi", funct } } }); + + + resource.resetAllCache = function () { + cache.removeAll(); + }; + + return resource; });