reverseproxy: remove options from renewCerts

This commit is contained in:
Girish Ramakrishnan
2022-11-14 08:13:47 +01:00
parent 5e2a55ecad
commit 0843baad8b
4 changed files with 7 additions and 12 deletions

View File

@@ -300,9 +300,7 @@ async function prepareDashboardDomain(req, res, next) {
}
async function renewCerts(req, res, next) {
if ('domain' in req.body && typeof req.body.domain !== 'string') return next(new HttpError(400, 'domain must be a string'));
const [error, taskId] = await safe(cloudron.renewCerts({ domain: req.body.domain || null }, AuditSource.fromRequest(req)));
const [error, taskId] = await safe(cloudron.renewCerts(AuditSource.fromRequest(req)));
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(202, { taskId }));