Fix new linter errors

This commit is contained in:
Alex Ling
2021-03-12 15:03:12 +00:00
parent daec2bdac6
commit ee52c52f46
16 changed files with 46 additions and 54 deletions

View File

@@ -339,7 +339,7 @@ struct APIRouter
}
post "/api/admin/mangadex/download" do |env|
begin
chapters = env.params.json["chapters"].as(Array).map { |c| c.as_h }
chapters = env.params.json["chapters"].as(Array).map &.as_h
jobs = chapters.map { |chapter|
Queue::Job.new(
chapter["id"].as_i64.to_s,