Skip to content

Commit

Permalink
Merge pull request #13 from Kirouane/fix-shift-all
Browse files Browse the repository at this point in the history
fix shift:all, the webhook is called one time only.
  • Loading branch information
esbenp authored Nov 9, 2017
2 parents f354695 + ae55903 commit e47ac07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/pdf-bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var Table = require('cli-table')
var program = require('commander');
var merge = require('lodash.merge')
var chunk = require('lodash.chunk')
var clone = require('lodash.clonedeep');
var createPdfGenerator = require('../src/pdfGenerator')
var createApi = require('../src/api')
var error = require('../src/error')
Expand Down Expand Up @@ -334,7 +335,7 @@ program

var promises = []
for(var i in chunk) {
promises.push(processJob(chunk[i], configuration, false))
promises.push(processJob(chunk[i], clone(configuration), false))
}

Promise.all(promises)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"html-pdf-chrome": "^0.2.0",
"lodash.chunk": "^4.2.0",
"lodash.merge": "^4.6.0",
"lodash.clonedeep": "^4.5.0",
"lowdb": "^0.16.2",
"node-fetch": "^1.7.1",
"prompt": "^1.0.0",
Expand Down

0 comments on commit e47ac07

Please sign in to comment.