more obvious bugfixes

This commit is contained in:
AJ ONeal 2018-08-08 02:09:17 -06:00
parent 60ee3720e0
commit f828839b4d
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ DB.domains._add = function (acc, opts) {
, wildcard: opts.wildcard , wildcard: opts.wildcard
}; };
var pdomain; var pdomain;
var parts = name.split('.').map(function (el, i, arr) { var parts = opts.name.split('.').map(function (el, i, arr) {
return arr.slice(i).join('.'); return arr.slice(i).join('.');
}).reverse(); }).reverse();
parts.shift(); parts.shift();