修复training显示异常

This commit is contained in:
masnn committed 2020-05-30 12:26:54 +08:00
1 parent 257d9814a9
commit b2989cb9ea
14 files changed
+88 -89

No files matched your search

+2 -2
View File
@@ -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;