From 30ddda723d8fe030fa458ab47a4e3766497a64ca Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 11 Jan 2018 01:00:15 -0800 Subject: [PATCH] typo --- src/routes/cloudron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/cloudron.js b/src/routes/cloudron.js index 4a460488b..83931bd00 100644 --- a/src/routes/cloudron.js +++ b/src/routes/cloudron.js @@ -111,7 +111,7 @@ function dnsSetup(req, res, next) { if (typeof req.body.adminFqdn !== 'string' || !req.body.domain) return next(new HttpError(400, 'adminFqdn is required')); if ('zoneName' in req.body && typeof req.body.zoneName !== 'string') return next(new HttpError(400, 'zoneName must be a string')); - if (!config || typeof req.body.config !== 'object') return next(new HttpError(400, 'config must be an object')); + if (!req.body.config || typeof req.body.config !== 'object') return next(new HttpError(400, 'config must be an object')); cloudron.dnsSetup(req.body.adminFqdn.toLowerCase(), req.body.domain.toLowerCase(), req.body.zoneName || '', req.body.provider, req.body.config, function (error) { if (error && error.reason === CloudronError.ALREADY_SETUP) return next(new HttpError(409, error.message));