Properly fix the bulk route
This commit is contained in:
parent
bd7f12ccd0
commit
5c4c49d3c8
@ -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|
|
||||||
|
Loading…
Reference in New Issue
Block a user