mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fix
This commit is contained in:
1 file changed
+2
-2
@@ -204,12 +204,12 @@ class TrainingEditHandler extends Handler {
|
|||||||
@param('title', Types.Title)
|
@param('title', Types.Title)
|
||||||
@param('content', Types.Content)
|
@param('content', Types.Content)
|
||||||
@param('dag', Types.Content)
|
@param('dag', Types.Content)
|
||||||
@param('pin', Types.UnsignedInt)
|
|
||||||
@param('description', Types.Content)
|
@param('description', Types.Content)
|
||||||
|
@param('pin', Types.UnsignedInt, true)
|
||||||
@param('maintainer', Types.NumericArray, true)
|
@param('maintainer', Types.NumericArray, true)
|
||||||
async post(
|
async post(
|
||||||
domainId: string, tid: ObjectId, title: string, content: string,
|
domainId: string, tid: ObjectId, title: string, content: string,
|
||||||
_dag: string, pin = 0, description: string, maintainer: number[] = [],
|
_dag: string, description: string, pin = 0, maintainer: number[] = [],
|
||||||
) {
|
) {
|
||||||
if ((!!this.tdoc?.pin) !== (!!pin)) this.checkPerm(PERM.PERM_PIN_TRAINING);
|
if ((!!this.tdoc?.pin) !== (!!pin)) this.checkPerm(PERM.PERM_PIN_TRAINING);
|
||||||
const dag = await _parseDagJson(domainId, _dag);
|
const dag = await _parseDagJson(domainId, _dag);
|
||||||
|
|||||||
Reference in new issue
Block a user