10008: Move test setup from __init__() to setUp()
[arvados.git] / services / api / lib / eventbus.rb
index e7f2bb13108e327d533a673caae31bdb8e7f09e6..16bb030941c3033ebf32cb972a645eb821a063d3 100644 (file)
@@ -143,7 +143,7 @@ class EventBus
         #
         # Note: find_each implies order('id asc'), which is what we
         # want.
-        logs.select(:id).find_each do |l|
+        logs.select('logs.id').find_each do |l|
           if not ws.sent_ids.include?(l.id)
             # only send if not a duplicate
             ws.send(Log.find(l.id).as_api_response.to_json)