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)) ); }