Merge branch 'master' into develop

This commit is contained in:
undefined committed 2021-04-16 12:13:21 +08:00
commit 6c5532e298
6 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "2.22.3", "version": "2.22.4",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "dist/loader.js", "main": "dist/loader.js",
"typings": "dist/loader.d.ts", "typings": "dist/loader.d.ts",
+1 -1
View File
@@ -413,7 +413,7 @@ class ContestCreateHandler extends ContestHandler {
@param('beginAtDate', Types.Date) @param('beginAtDate', Types.Date)
@param('beginAtTime', Types.Time) @param('beginAtTime', Types.Time)
@param('duration', Types.Float) @param('duration', Types.Float)
@param('content', Types.Title) @param('title', Types.Title)
@param('content', Types.Content) @param('content', Types.Content)
@param('rule', Types.Name) @param('rule', Types.Name)
@param('pids', Types.Content) @param('pids', Types.Content)
+1 -1
View File
@@ -326,7 +326,7 @@ class DiscussionEditHandler extends DiscussionHandler {
} }
@param('did', Types.ObjectID) @param('did', Types.ObjectID)
@param('content', Types.Title) @param('title', Types.Title)
@param('content', Types.Content) @param('content', Types.Content)
@param('highlight', Types.Boolean) @param('highlight', Types.Boolean)
@param('pin', Types.Boolean) @param('pin', Types.Boolean)
+1 -1
View File
@@ -302,7 +302,7 @@ class HomeworkEditHandler extends HomeworkHandler {
@param('penaltySinceTime', Types.Time) @param('penaltySinceTime', Types.Time)
@param('extensionDays', Types.Float) @param('extensionDays', Types.Float)
@param('penaltyRules', Types.Content, validatePenaltyRules, convertPenaltyRules) @param('penaltyRules', Types.Content, validatePenaltyRules, convertPenaltyRules)
@param('content', Types.Title) @param('title', Types.Title)
@param('content', Types.Content) @param('content', Types.Content)
@param('pids', Types.Content) @param('pids', Types.Content)
@param('rated', Types.Boolean) @param('rated', Types.Boolean)
+1 -1
View File
@@ -575,7 +575,7 @@ export class ProblemCreateHandler extends Handler {
}; };
} }
@post('content', Types.Title) @post('title', Types.Title)
@post('content', Types.Content) @post('content', Types.Content)
@post('pid', Types.Name, true, isPid) @post('pid', Types.Name, true, isPid)
@post('hidden', Types.Boolean) @post('hidden', Types.Boolean)
+2 -2
View File
@@ -224,9 +224,9 @@ class TrainingEditHandler extends Handler {
} }
@param('tid', Types.ObjectID) @param('tid', Types.ObjectID)
@param('content', Types.Title) @param('title', Types.Title)
@param('content', Types.Content) @param('content', Types.Content)
@param('dag', Types.String, isContent) @param('dag', Types.Content)
@param('description', Types.String, isDescription) @param('description', Types.String, isDescription)
async post( async post(
domainId: string, tid: ObjectID, domainId: string, tid: ObjectID,