txt: enables TXT records for all records

This commit is contained in:
Akshay Nair
2021-09-06 14:39:41 +05:30
parent 44d5fc6962
commit 7ede9c6225
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const { domainService: dc } = require('../utils/domain-service');
const { getDomains: gd } = require('../utils/get-domain');
// Allow TXT records while publishing (for pcl validation)
const getRecords = R.compose(R.toPairs, R.pick(VALID_RECORD_TYPES.concat(['TXT'])));
const getRecords = R.compose(R.toPairs, R.pick(VALID_RECORD_TYPES));
const toHostList = R.chain(data => {
const rs = getRecords(data.record);
+1 -1
View File
@@ -21,7 +21,7 @@ const DOMAINS_PATH = require('path').resolve('domains');
module.exports = {
ENV,
IS_TEST,
VALID_RECORD_TYPES: ['CNAME', 'A', 'URL', 'MX'],
VALID_RECORD_TYPES: ['CNAME', 'A', 'URL', 'MX', 'TXT'],
DOMAIN_DOMAIN: DOMAIN_DOMAIN || 'booboo.xyz',
DOMAIN_USER: IS_TEST ? 'testuser' : DOMAIN_USER,
DOMAIN_API_KEY: IS_TEST ? 'testkey' : DOMAIN_API_KEY,