Explorar o código

add missing callback in compressAndSaveRawUpdates

Brian Gough %!s(int64=11) %!d(string=hai) anos
pai
achega
add6a68fe1
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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