mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
core: fix #115
This commit is contained in:
1 parent
83ad274bc1
commit
0e356327b2
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.23.26",
|
||||
"version": "2.23.27",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -191,7 +191,7 @@ class RecordModel {
|
||||
|
||||
@ArgMethod
|
||||
static getByUid(domainId: string, uid: number, limit: number): Promise<Rdoc[]> {
|
||||
return RecordModel.coll.find({ domainId, uid }).limit(limit).toArray();
|
||||
return RecordModel.coll.find({ domainId, uid, hidden: false }).sort({ _id: -1 }).limit(limit).toArray();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user