Эх сурвалжийг харах

added a time delay to the pack migration script

Brian Gough 11 жил өмнө
parent
commit
ff7860b6dc

+ 3 - 1
services/track-changes/pack.coffee

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