فهرست منبع

add missing callback in compressAndSaveRawUpdates

Brian Gough 11 سال پیش
والد
کامیت
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