Properly fix the bulk route

This commit is contained in:
Donovan Daniels 2024-10-24 02:38:22 -05:00
parent bd7f12ccd0
commit 5c4c49d3c8
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA

View File

@ -126,7 +126,7 @@ module YiffRest
r.incr("yiffy2:stats:images:total:bulk") r.incr("yiffy2:stats:images:total:bulk")
r.incrby("yiffy2:stats:images:key:#{@apikey.id}", total) r.incrby("yiffy2:stats:images:key:#{@apikey.id}", total)
r.incr("yiffy2:stats:images:key:#{@apikey.id}:bulk") 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}") r.incr("yiffy2:stats:image:#{img.md5}")
end end
req.each do |category, amount| req.each do |category, amount|