This commit is contained in:
undefined committed 2021-04-25 17:12:11 +08:00
1 parent 83ad274bc1
commit 0e356327b2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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();
}
}