Browse Source

fix fetch-meta

guoziyun 1 year ago
parent
commit
d67e4a1200
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/cron-jobs/fetch-meta.js

+ 1 - 1
service/cron-jobs/fetch-meta.js

@@ -80,7 +80,7 @@ async function run() {
   // 筛选出所有已经ready并且还没有title的图
   let query = { status: { $gte: 7000 }, $or: [{ copy: { $exists: false } }, { copy: null }] };
 
-  let total = await models.Art.countDocuments();
+  let total = await models.Art.countDocuments(query);
   console.log('total:', total);
 
   models.Art