core: validator: support 'convert' as default action

fix #505, close #506
This commit is contained in:
undefined committed 2023-02-05 13:07:46 +08:00
1 parent 02c0d7aaa8
commit 1124ed9506
7 files changed
+11 -9

No files matched your search

+2 -2
View File
@@ -385,12 +385,12 @@ export class ContestEditHandler extends Handler {
@param('pids', Types.Content)
@param('rated', Types.Boolean)
@param('code', Types.String, true)
@param('autoHide', Types.Boolean, true)
@param('autoHide', Types.Boolean)
@param('assign', Types.CommaSeperatedArray, true)
@param('lock', Types.UnsignedInt, true)
@param('contestDuration', Types.Float, true)
@param('maintainer', Types.NumericArray, true)
@param('allowViewCode', Types.Boolean, true)
@param('allowViewCode', Types.Boolean)
async postUpdate(
domainId: string, tid: ObjectID, beginAtDate: string, beginAtTime: string, duration: number,
title: string, content: string, rule: string, _pids: string, rated = false,