|
|
@@ -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
|