Skip to content

Commit

Permalink
feat: 非会员默认无法公开,所以取消public过滤
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheese-Yu authored Feb 11, 2023
1 parent 0e7269d commit 5e7dff7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Downloader {
}
const realDocs = docs.data
.filter(doc => !!doc.status) // 已发布
.filter(doc => !!doc.public) // 已公开
// .filter(doc => !!doc.public) // 已公开,2023.02.11 非会员默认无法公开,所以取消该过滤
.map(doc => lodash.pick(doc, PICK_PROPERTY));
console.log(`doc amount: ${realDocs.length}`);
// 并发数
Expand Down Expand Up @@ -172,4 +172,4 @@ class Downloader {
}
}

module.exports = Downloader;
module.exports = Downloader;

0 comments on commit 5e7dff7

Please sign in to comment.