parse value JSON
This commit is contained in:
+1
-1
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user