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