Преглед изворни кода

avoid duplicate filling of UserInfo in getDocUpdates

Brian Gough пре 10 година
родитељ
комит
8922b97bd7
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      services/track-changes/app/coffee/UpdatesManager.coffee

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

@@ -119,9 +119,7 @@ module.exports = UpdatesManager =
 			#console.log "options", options
 			PackManager.getOpsByVersionRange project_id, doc_id, options.from, options.to, (error, updates) ->
 				return callback(error) if error?
-				UpdatesManager.fillUserInfo updates, (err, results) ->
-					return callback(err) if err?
-					callback null, results
+				callback null, updates
 
 	getDocUpdatesWithUserInfo: (project_id, doc_id, options = {}, callback = (error, updates) ->) ->
 		UpdatesManager.getDocUpdates project_id, doc_id, options, (error, updates) ->