This commit is contained in:
undefined committed 2021-06-11 16:55:37 +08:00
1 parent e6c1592875
commit 3ade228d47
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.28.29",
"version": "2.28.30",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
+1 -1
View File
@@ -29,7 +29,7 @@ import {
} from '../service/server';
export const parseCategory = (value: string) => flatten(value.split('+').map((e) => e.split(','))).map((e) => e.trim());
export const parsePid = (value: string) => (isSafeInteger(value) ? parseInt(value, 10) : value);
export const parsePid = (value: string) => (isSafeInteger(value) ? +value : value);
export class ProblemHandler extends Handler {
async cleanup() {
+1 -1
View File
@@ -211,7 +211,7 @@ class RecordModel {
}
if (!contestInfo) {
return RecordModel.coll.find({
domainId, uid, pdomain, pid, contest: { $exists: false },
domainId, uid, pdomain, pid, contest: null,
});
}
return RecordModel.coll.find({