diff --git a/routes/dns.js b/routes/dns.js index ccaf96e..d1eb871 100644 --- a/routes/dns.js +++ b/routes/dns.js @@ -25,7 +25,7 @@ router.get('/dns/edit/:domainId', authMw.AllowIfAuthenticated, async (req, res, return next(); const fullDomain = result.domain + "." + result.tld; - let records = GetAllRecords(fullDomain); + let records = await GetAllRecords(fullDomain); res.render('dns', {title: pageTitle, domain: result, dnsRecords: records}); });