fix bulk route
This commit is contained in:
parent
e14419bc91
commit
cce4fc996f
@ -79,7 +79,7 @@ module YiffRest
|
||||
|
||||
url = params.dig(:api_image, :external_url)
|
||||
@image.convert_to_external(url)
|
||||
redirect_to(yiff_rest_api_v2_manage_images_path(search: { id: @image.id }), notice: "Image concerted")
|
||||
redirect_to(yiff_rest_api_v2_manage_images_path(search: { id: @image.id }), notice: "Image converted")
|
||||
end
|
||||
|
||||
def update_cache
|
||||
|
@ -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.each do |img|
|
||||
images.map(&:second).each do |img|
|
||||
r.incr("yiffy2:stats:image:#{img.md5}")
|
||||
end
|
||||
req.each do |category, amount|
|
||||
|
Loading…
Reference in New Issue
Block a user