mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09: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
@@ -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