mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +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
|
||||
overrides:
|
||||
- files:
|
||||
- '**/public/**/*.ts'
|
||||
- '**/public/**/*.page.js'
|
||||
- '**/public/**/*.{ts,tsx,page.js}'
|
||||
rules:
|
||||
'@typescript-eslint/indent':
|
||||
- warn
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "4.7.7",
|
||||
"version": "4.7.8",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/plugin-api",
|
||||
"module": "src/plugin-api",
|
||||
|
||||
@@ -149,7 +149,7 @@ class TrainingDetailHandler extends Handler {
|
||||
if (nsdoc.isDone) doneNids.add(node._id);
|
||||
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),
|
||||
donePids: Array.from(donePids),
|
||||
done: doneNids.size === tdoc.dag.length,
|
||||
|
||||
Reference in new issue
Block a user