Browse Source

Make `now dns rm` work again

master
Leo Lamprecht 8 years ago
parent
commit
7d75703825
  1. 4
      lib/domain-records.js

4
lib/domain-records.js

@ -58,8 +58,10 @@ module.exports = class DomainRecords extends Now {
const domainList = await Promise.all(bodies); const domainList = await Promise.all(bodies);
for (const body of domainList) { for (const body of domainList) {
const index = domainList.indexOf(body);
records.set( records.set(
body, domains[index],
body.records.sort((a, b) => a.slug.localeCompare(b.slug)) body.records.sort((a, b) => a.slug.localeCompare(b.slug))
); );
} }

Loading…
Cancel
Save