mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: add superuser badge at user_detail
This commit is contained in:
1 parent
739534f9f7
commit
26a381ce3f
4 files changed
+13
-4
No files matched your search
@@ -218,7 +218,9 @@ class RecordModel {
|
||||
|
||||
@ArgMethod
|
||||
static getByUid(domainId: string, uid: number, limit: number): Promise<RecordDoc[]> {
|
||||
return RecordModel.coll.find({ domainId, uid, hidden: false }).sort({ _id: -1 }).limit(limit).toArray();
|
||||
return RecordModel.coll.find({
|
||||
domainId, uid, hidden: false, 'contest.tid': null,
|
||||
}).sort({ _id: -1 }).limit(limit).toArray();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user