renewCerts: do not pass domain
This commit is contained in:
+2
-2
@@ -2180,8 +2180,8 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Client.prototype.renewCerts = function (domain, callback) {
|
Client.prototype.renewCerts = function (callback) {
|
||||||
post('/api/v1/cloudron/renew_certs', { domain: domain || null }, null, function (error, data, status) {
|
post('/api/v1/cloudron/renew_certs', {}, null, function (error, data, status) {
|
||||||
if (error) return callback(error);
|
if (error) return callback(error);
|
||||||
if (status !== 202) return callback(new ClientError(status, data));
|
if (status !== 202) return callback(new ClientError(status, data));
|
||||||
|
|
||||||
|
|||||||
@@ -425,7 +425,7 @@ angular.module('Application').controller('DomainsController', ['$scope', '$locat
|
|||||||
$scope.renewCerts.message = '';
|
$scope.renewCerts.message = '';
|
||||||
$scope.renewCerts.errorMessage = '';
|
$scope.renewCerts.errorMessage = '';
|
||||||
|
|
||||||
Client.renewCerts(null /* all domains */, function (error, taskId) {
|
Client.renewCerts(function (error, taskId) {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
$scope.renewCerts.errorMessage = error.message;
|
$scope.renewCerts.errorMessage = error.message;
|
||||||
|
|||||||
Reference in New Issue
Block a user