fix problems found by deepscan.io

This commit is contained in:
undefined committed 2020-11-08 23:44:16 +08:00
1 parent e8dcd97561
commit dd4ecdb029
13 files changed
+33 -29

No files matched your search

+2 -2
View File
@@ -401,7 +401,7 @@ async function message(src: Db, report: Function) {
}
}
async function removeInvalidPid(src: Db, report: Function) {
async function removeInvalidPid(report: Function) {
const count = await dst.collection('document').find({ docType: 10 }).count();
const bulk = dst.collection('document').initializeUnorderedBulkOp();
await report({ progress: 1, message: `Remove pid: ${count}` });
@@ -550,7 +550,7 @@ export async function run({
await discussionNode(src, report);
await message(src, report);
await userfileUsage(src, report);
await removeInvalidPid(src, report);
await removeInvalidPid(report);
return true;
}