Skip to content

Commit

Permalink
version 1.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuyingda committed Dec 23, 2017
1 parent 0a243a9 commit d814dea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lib/consumer.js
Expand Up @@ -190,7 +190,13 @@ class Consumer {
if (!!task.referInfo) {
crawlResult.referInfo = task.referInfo;
}
this.afterCrawlRequest(crawlResult);
let tmpSaveTask = await redis.hget({
tableName: 'tmphash:' + this.channel,
key: task.id
});
if (tmpSaveTask !== null) {
this.afterCrawlRequest(crawlResult);
}
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "webster",
"version": "1.3.7",
"version": "1.3.8",
"description": "a reliable web crawling & scraping framework for Node.js.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit d814dea

Please sign in to comment.