rating系统(测试

This commit is contained in:
masnn committed 2020-06-07 15:38:38 +08:00
1 parent 508f5644c3
commit 4aa1c9fe1f
7 files changed
+131 -5

No files matched your search

-1
View File
@@ -81,7 +81,6 @@ class SystemSettingHandler extends SystemHandler {
const s = setting.SYSTEM_SETTINGS_BY_KEY[`${key}.${sub}`];
if (s) {
if (s.ui === 'number') args[key][sub] = Number(args[key][sub]);
console.log(s);
subtasks.push(system.set(`${key}.${sub}`, args[key][sub]));
}
}
-1
View File
@@ -25,7 +25,6 @@ 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), false),