From a06c09160c817a339116c4f1a7a10534b3ea4660 Mon Sep 17 00:00:00 2001 From: Pierre De Paepe Date: Mon, 24 Aug 2020 11:32:40 +0200 Subject: [PATCH] fix(dbaas.logs): remove deprecated accounting aapi --- .../accounting/accounting.aapi.service.js | 25 ------------------- .../logs/accounting/accounting.service.js | 5 ---- src/api/dbaas/logs/logs.service.js | 3 --- 3 files changed, 33 deletions(-) delete mode 100644 src/api/dbaas/logs/accounting/accounting.aapi.service.js delete mode 100644 src/api/dbaas/logs/accounting/accounting.service.js diff --git a/src/api/dbaas/logs/accounting/accounting.aapi.service.js b/src/api/dbaas/logs/accounting/accounting.aapi.service.js deleted file mode 100644 index b239cbda..00000000 --- a/src/api/dbaas/logs/accounting/accounting.aapi.service.js +++ /dev/null @@ -1,25 +0,0 @@ -angular.module('ovh-api-services').service('OvhApiDbaasLogsAccountingAapi', ($resource, $cacheFactory) => { - const cache = $cacheFactory('OvhApiDbaasLogsAccountingAapi'); - - const accounting = $resource('/dbaas/logs/:serviceName/accounting', { - serviceName: '@serviceName', - }, { - me: { - method: 'GET', - url: '/dbaas/logs/:serviceName/accounting', - serviceType: 'aapi', - cache, - isArray: false, - }, - }); - - accounting.resetAllCache = function () { - accounting.resetCache(); - }; - - accounting.resetCache = function () { - cache.removeAll(); - }; - - return accounting; -}); diff --git a/src/api/dbaas/logs/accounting/accounting.service.js b/src/api/dbaas/logs/accounting/accounting.service.js deleted file mode 100644 index d68ae5a8..00000000 --- a/src/api/dbaas/logs/accounting/accounting.service.js +++ /dev/null @@ -1,5 +0,0 @@ -angular.module('ovh-api-services').service('OvhApiDbaasLogsAccounting', ($injector) => ({ - Aapi() { - return $injector.get('OvhApiDbaasLogsAccountingAapi'); - }, -})); diff --git a/src/api/dbaas/logs/logs.service.js b/src/api/dbaas/logs/logs.service.js index 5202f347..85838b72 100644 --- a/src/api/dbaas/logs/logs.service.js +++ b/src/api/dbaas/logs/logs.service.js @@ -8,9 +8,6 @@ angular.module('ovh-api-services').service('OvhApiDbaasLogs', ($injector) => ({ Aapi() { return $injector.get('OvhApiDbaasLogsAapi'); }, - Accounting() { - return $injector.get('OvhApiDbaasLogsAccounting'); - }, Cluster() { return $injector.get('OvhApiDbaasLogsCluster'); },