Merge branch '2509-rake-linkchecker'
[arvados.git] / services / api / app / controllers / application_controller.rb
index ab6ec9ce1401df7a7c7bb2791a563b26c379337d..06e1838411b4a4d4171bf2884f323d61a9737ebf 100644 (file)
@@ -433,7 +433,9 @@ class ApplicationController < ActionController::Base
       :items => @objects.as_api_response(nil)
     }
     if @objects.respond_to? :except
-      @object_list[:items_available] = @objects.except(:limit).except(:offset).count
+      @object_list[:items_available] = @objects.
+        except(:limit).except(:offset).
+        count(:id, distinct: true)
     end
     render json: @object_list
   end