mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix training enroll
This commit is contained in:
1 parent
cd37b29515
commit
a0ef60bfeb
3 files changed
+3
-4
No files matched your search
+1
-2
@@ -6,8 +6,7 @@ ignorePatterns:
|
|||||||
- packages/ui-default
|
- packages/ui-default
|
||||||
overrides:
|
overrides:
|
||||||
- files:
|
- files:
|
||||||
- '**/public/**/*.ts'
|
- '**/public/**/*.{ts,tsx,page.js}'
|
||||||
- '**/public/**/*.page.js'
|
|
||||||
rules:
|
rules:
|
||||||
'@typescript-eslint/indent':
|
'@typescript-eslint/indent':
|
||||||
- warn
|
- warn
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "4.7.7",
|
"version": "4.7.8",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/plugin-api",
|
"main": "src/plugin-api",
|
||||||
"module": "src/plugin-api",
|
"module": "src/plugin-api",
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ class TrainingDetailHandler extends Handler {
|
|||||||
if (nsdoc.isDone) doneNids.add(node._id);
|
if (nsdoc.isDone) doneNids.add(node._id);
|
||||||
nsdict[node._id] = nsdoc;
|
nsdict[node._id] = nsdoc;
|
||||||
}
|
}
|
||||||
const tsdoc = await training.setStatus(domainId, tdoc.docId, udoc._id, {
|
const tsdoc = await training.setStatus(domainId, tdoc.docId, uid, {
|
||||||
doneNids: Array.from(doneNids),
|
doneNids: Array.from(doneNids),
|
||||||
donePids: Array.from(donePids),
|
donePids: Array.from(donePids),
|
||||||
done: doneNids.size === tdoc.dag.length,
|
done: doneNids.size === tdoc.dag.length,
|
||||||
|
|||||||
Reference in new issue
Block a user