Skip to content

Commit

Permalink
[upload-docs] fix broken promise chain on backoff
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Nov 2, 2017
1 parent 195e581 commit ca925b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medic-conf",
"version": "1.7.3",
"version": "1.7.4",
"description": "Configure Medic Mobile deployments",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/fn/upload-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module.exports = (projectDir, couchUrl) => {
if(batchSize > 1) {
if(log.level >= log.LEVEL_TRACE) console.log();
trace('Server connection timed out. Decreasing batch size…');
processNextBatch(docFiles, batchSize >> 1);
return processNextBatch(docFiles, batchSize >> 1);
} else {
warn('Server connection timed out for batch size of 1 document. We will continue to retry, but you might want to cancel the job if this continues.');
return processNextBatch(docFiles, 1);
Expand Down

0 comments on commit ca925b6

Please sign in to comment.