adds psl validation TXT record

This commit is contained in:
Akshay Nair
2021-05-20 21:34:08 +05:30
parent e6b353eb60
commit d7a4700f96
4 changed files with 15 additions and 2 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ const { VALID_RECORD_TYPES, TTL, ENV } = require('../utils/constants');
const { domainService: dc } = require('../utils/domain-service');
const { getDomains: gd } = require('../utils/get-domain');
const getRecords = R.compose(R.toPairs, R.pick(VALID_RECORD_TYPES));
// Allow TXT records while publishing (for pcl validation)
const getRecords = R.compose(R.toPairs, R.pick(VALID_RECORD_TYPES.concat(['TXT'])));
const toHostList = R.chain(data => {
const rs = getRecords(data.record);