优化安装流程

This commit is contained in:
masnn committed 2020-06-07 13:59:22 +08:00
1 parent 63d55cedf4
commit 508f5644c3
30 files changed
+279 -139

No files matched your search

+2 -1
View File
@@ -25,9 +25,10 @@ class RecordListHandler extends RecordHandler {
];
}
const rdocs = await record.getMany(domainId, q, { _id: -1 }, page, await system.get('RECORD_PER_PAGE'));
console.log(rdocs);
const [udict, pdict] = await Promise.all([
user.getList(domainId, rdocs.map((rdoc) => rdoc.uid)),
problem.getList(domainId, rdocs.map((rdoc) => rdoc.pid)),
problem.getList(domainId, rdocs.map((rdoc) => rdoc.pid), false),
]);
const path = [
['Hydro', '/'],