parse value JSON

This commit is contained in:
2026-05-14 16:03:21 -04:00
parent 170a71e789
commit 8d6bb6302d
+1 -1
View File
@@ -29,7 +29,7 @@ router.get('/dns/edit/:domainId', authMw.AllowIfAuthenticated, async (req, res,
let records = [];
for(const [key, value] of Object.entries(rawRecords)) {
records.push({domain: CoreDNSToDomain(key), host: value.host});
records.push({domain: CoreDNSToDomain(key), host: JSON.parse(value).host});
}
res.render('dns', {title: pageTitle, domain: result, dnsRecords: records});