1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

fix helpers.js for txt

This commit is contained in:
Tom Limoncelli
2023-06-21 18:11:23 -06:00
parent c56a04fb23
commit 10f06c2834

View File

@ -523,11 +523,9 @@ var TXT = recordBuilder('TXT', {
record.name = args.name;
// Store the strings from the user verbatim.
if (_.isString(args.target)) {
record.txtstrings = [args.target];
record.target = args.target; // Overwritten by the Go code
record.target = args.target;
} else {
record.txtstrings = args.target;
record.target = args.target.join(''); // Overwritten by the Go code
record.target = args.target.join('');
}
},
});