Standard fix
This commit is contained in:
@@ -5,7 +5,7 @@ module Admin
|
||||
include Deps["commands.media.delete"]
|
||||
|
||||
def handle(req, res)
|
||||
delete.call(path: File.join(Hanami.app.root, "public", "media",req.params[:year], req.params[:path]))
|
||||
delete.call(path: File.join(Hanami.app.root, "public", "media", req.params[:year], req.params[:path]))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -15,7 +15,7 @@ module Admin
|
||||
Dir["#{MEDIA_DIR}*"]
|
||||
.reverse
|
||||
.reject do |path|
|
||||
IGNORE_PATHS.any?{|ip| path.match(ip) }
|
||||
IGNORE_PATHS.any? { |ip| path.match(ip) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user