mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
修复training显示异常
This commit is contained in:
1 parent
257d9814a9
commit
b2989cb9ea
14 files changed
+88
-89
No files matched your search
@@ -18,7 +18,7 @@ const TYPE_FILE = 50;
|
||||
const TYPE_HOMEWORK = 60;
|
||||
|
||||
async function add(
|
||||
domainId, content, owner, docType, docId,
|
||||
domainId, content, owner, docType, docId = null,
|
||||
parentType = null, parentId = null, args = {},
|
||||
) {
|
||||
const _id = new ObjectID();
|
||||
@@ -210,7 +210,7 @@ async function cappedIncStatus(
|
||||
{
|
||||
domainId, docType, docId, uid, [key]: { $not },
|
||||
},
|
||||
{ $inc: { key: value } },
|
||||
{ $inc: { [key]: value } },
|
||||
{ upsert: true, returnOriginal: false },
|
||||
);
|
||||
return res.value;
|
||||
|
||||
Reference in new issue
Block a user