比赛计分板

This commit is contained in:
masnn committed 2020-04-11 21:51:51 +08:00
1 parent 9bf3343a64
commit f73859a42f
4 files changed
+172 -32

No files matched your search

+7 -1
View File
@@ -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
};