限制用户详情单页提交记录数量

This commit is contained in:
undefined committed 2020-08-01 11:49:42 +08:00
1 parent 9d5b5f1eed
commit 0194ab4eb0
7 files changed
+48 -35

No files matched your search

+2 -2
View File
@@ -171,8 +171,8 @@ export function getUserInProblemMulti(
return coll.find({ domainId, uid, pid });
}
export function getByUid(domainId: string, uid: number): Promise<Rdoc[]> {
return coll.find({ domainId, uid }).toArray();
export function getByUid(domainId: string, uid: number, limit: number): Promise<Rdoc[]> {
return coll.find({ domainId, uid }).limit(limit).toArray();
}
global.Hydro.model.record = {