bump version

This commit is contained in:
undefined committed 2022-01-07 23:00:14 +08:00
1 parent 5ef7b94df8
commit 0028827761
13 files changed
+33 -33

No files matched your search

+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "3.3.3",
"version": "3.3.4",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",
@@ -21,7 +21,7 @@
"detect-browser": "^5.3.0",
"esbuild": "0.14.3",
"fs-extra": "^10.0.0",
"graphql": "^16.1.0",
"graphql": "^16.2.0",
"graphql-scalars": "1.14.1",
"js-yaml": "^4.1.0",
"koa": "^2.13.4",
@@ -64,10 +64,10 @@
"@types/mongodb": "^3.6.20",
"@types/nodemailer": "^6.4.4",
"@types/notp": "^2.0.1",
"@types/serialize-javascript": "^5.0.1",
"@types/serialize-javascript": "^5.0.2",
"@types/sockjs": "^0.3.33",
"@types/source-map-support": "^0.5.4",
"@types/superagent": "^4.1.13",
"@types/superagent": "^4.1.14",
"moment": "^2.29.1",
"pm2": "^5.1.2"
},
+2 -2
View File
@@ -485,7 +485,7 @@ export class ProblemEditHandler extends ProblemManageHandler {
@post('hidden', Types.Boolean)
@post('tag', Types.Content, true, null, parseCategory)
@post('difficulty', Types.PositiveInt, (i) => +i <= 10, true)
@post('assign', Types.CommaSeperatedArray)
@post('assign', Types.CommaSeperatedArray, true)
async post(
domainId: string, pid: string | number, title: string, content: string,
newPid: string = '', hidden = false, tag: string[] = [], difficulty = 0, assign: string[] = [],
@@ -789,7 +789,7 @@ export class ProblemCreateHandler extends Handler {
@post('hidden', Types.Boolean)
@post('difficulty', Types.PositiveInt, (i) => +i <= 10, true)
@post('tag', Types.Content, true, null, parseCategory)
@post('assign', Types.CommaSeperatedArray)
@post('assign', Types.CommaSeperatedArray, true)
async post(
domainId: string, title: string, content: string, pid: string,
hidden = false, difficulty = 0, tag: string[] = [], assign: string[] = [],
+2 -2
View File
@@ -33,8 +33,8 @@ class RecordModel {
return base - ((pending * 1000 + 1) * (sum(timeRecent.map((i) => i.time || 0)) / 10000));
}
static async get(_id: ObjectID): Promise<RecordDoc | null>
static async get(domainId: string, _id: ObjectID): Promise<RecordDoc | null>
static async get(_id: ObjectID): Promise<RecordDoc | null>;
static async get(domainId: string, _id: ObjectID): Promise<RecordDoc | null>;
static async get(arg0: string | ObjectID, arg1?: any) {
const _id = arg1 || arg0;
const domainId = arg1 ? arg0 : null;