This commit is contained in:
panda committed 2023-07-09 13:44:13 +00:00
1 parent 79504ed900
commit 24f31ccc38
1 file changed
+2 -2
+2 -2
View File
@@ -204,12 +204,12 @@ class TrainingEditHandler extends Handler {
@param('title', Types.Title)
@param('content', Types.Content)
@param('dag', Types.Content)
@param('pin', Types.UnsignedInt)
@param('description', Types.Content)
@param('pin', Types.UnsignedInt, true)
@param('maintainer', Types.NumericArray, true)
async post(
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);
const dag = await _parseDagJson(domainId, _dag);