From 7d757038258f370c372769bbf0ad991b1d39838c Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Tue, 21 Mar 2017 14:23:51 +0100 Subject: [PATCH] Make `now dns rm` work again --- lib/domain-records.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/domain-records.js b/lib/domain-records.js index f14bf23..c31e377 100644 --- a/lib/domain-records.js +++ b/lib/domain-records.js @@ -58,8 +58,10 @@ module.exports = class DomainRecords extends Now { const domainList = await Promise.all(bodies); for (const body of domainList) { + const index = domainList.indexOf(body); + records.set( - body, + domains[index], body.records.sort((a, b) => a.slug.localeCompare(b.slug)) ); }