Преглед на файлове

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) ->