mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
比赛计分板
This commit is contained in:
1 parent
9bf3343a64
commit
f73859a42f
4 files changed
+172
-32
No files matched your search
@@ -61,6 +61,11 @@ async function reset(rid) {
|
||||
async function count(query) {
|
||||
return await coll.find(query).count();
|
||||
}
|
||||
async function getList(rids) {
|
||||
let r = {};
|
||||
for (let rid of rids) r[rid] = await get(rid);
|
||||
return r;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
add,
|
||||
@@ -68,5 +73,6 @@ module.exports = {
|
||||
getMany,
|
||||
update,
|
||||
count,
|
||||
reset
|
||||
reset,
|
||||
getList
|
||||
};
|
||||
Reference in new issue
Block a user