core&ui: remove static manifest

This commit is contained in:
undefined committed 2021-09-15 17:28:57 +08:00
1 parent 10c3a62168
commit d7412fcc1e
18 files changed
+50 -124

No files matched your search

+3 -1
View File
@@ -103,7 +103,9 @@ class DomainModel {
static async getList(domainIds: string[]) {
const r: Record<string, DomainDoc | null> = {};
// eslint-disable-next-line no-await-in-loop
for (const domainId of domainIds) r[domainId] = await DomainModel.get(domainId);
const tasks = [];
for (const domainId of domainIds) tasks.push(DomainModel.get(domainId).then((ddoc) => { r[domainId] = ddoc; }));
await Promise.all(tasks);
return r;
}