Просмотр исходного кода

add missing callback in compressAndSaveRawUpdates

Brian Gough 11 лет назад
Родитель
Сommit
add6a68fe1
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      services/track-changes/app/coffee/UpdatesManager.coffee

+ 2 - 1
services/track-changes/app/coffee/UpdatesManager.coffee

@@ -42,7 +42,8 @@ module.exports = UpdatesManager =
 					if lastCompressedUpdate?
 						MongoManager.insertCompressedUpdates project_id, doc_id, [lastCompressedUpdate], temporary, () ->
 							return callback error
-					return
+					else
+						return callback error
 
 			compressedUpdates = UpdateCompressor.compressRawUpdates lastCompressedUpdate, rawUpdates