Skip to content

Commit

Permalink
fix(hosting.ssl): do not send empty body to apiv6 (#9691)
Browse files Browse the repository at this point in the history
ref: WEB-15392

Signed-off-by: Lucas Chaigne <[email protected]>
  • Loading branch information
lucas-chaigne authored and Jacques Larique committed Aug 14, 2023
1 parent c325b5f commit 080373a
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ import isString from 'lodash/isString';
angular.module('services').service(
'hostingSSLCertificate',
class HostingSSLCertificate {
constructor($rootScope, hostingSSLCertificateType, OvhApiHostingWebSsl) {
constructor(
$rootScope,
$http,
hostingSSLCertificateType,
OvhApiHostingWebSsl,
) {
this.$rootScope = $rootScope;
this.$http = $http;

this.hostingSSLCertificateType = hostingSSLCertificateType;
this.OvhApiHostingWebSsl = OvhApiHostingWebSsl;
Expand Down Expand Up @@ -34,8 +40,7 @@ angular.module('services').service(
}

regeneratingCertificate(serviceName) {
return this.OvhApiHostingWebSsl.v6().regenerate({ serviceName }, {})
.$promise;
return this.$http.post(`/hosting/web/${serviceName}/ssl/regenerate`);
}

deletingCertificate(serviceName) {
Expand Down

0 comments on commit 080373a

Please sign in to comment.