added a time delay to the pack migration script

This commit is contained in:
Brian Gough 2015-02-23 14:10:09 +00:00
parent b19f3835d5
commit ff7860b6dc

View file

@ -105,7 +105,9 @@ readFile todoFile, (err, todo) ->
fs.appendFileSync doneFile, doc_id + '\n' fs.appendFileSync doneFile, doc_id + '\n'
if shutdownRequested if shutdownRequested
return callback('shutdown') return callback('shutdown')
callback(err, result) setTimeout () ->
callback(err, result)
, 1000
, (err, results) -> , (err, results) ->
if err? if err?
console.log 'error:', err console.log 'error:', err