Răsfoiți Sursa

add missing callback in compressAndSaveRawUpdates

Brian Gough 11 ani în urmă
părinte
comite
add6a68fe1
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  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