diff --git a/app/controllers/yiff_rest/api_v2_controller.rb b/app/controllers/yiff_rest/api_v2_controller.rb index ed4a72c..4f7211f 100644 --- a/app/controllers/yiff_rest/api_v2_controller.rb +++ b/app/controllers/yiff_rest/api_v2_controller.rb @@ -126,7 +126,7 @@ module YiffRest r.incr("yiffy2:stats:images:total:bulk") r.incrby("yiffy2:stats:images:key:#{@apikey.id}", total) r.incr("yiffy2:stats:images:key:#{@apikey.id}:bulk") - images.map(&:second).each do |img| + images.flat_map(&:second).each do |img| r.incr("yiffy2:stats:image:#{img.md5}") end req.each do |category, amount|