File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ RUN mix phx.digest
3030# compile and build release
3131COPY lib lib
3232COPY web web
33+ COPY openapi.json openapi.json
3334# uncomment COPY if rel/ exists
3435# COPY rel rel
3536RUN mix do compile, release
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ defmodule Librecov.Plug.MultipartJob do
2828 handle ( content_type , conn )
2929 end
3030
31- def handle ( "application/json " , % { params: % { "json " => json } } = conn ) when is_binary ( json ) do
31+ def handle ( "multipart/form-data " , % { params: % { "json_file " => file } } = conn ) do
3232 conn
33- |> put_parsed_job ( json )
33+ |> put_parsed_job ( file |> read_file ( ) )
3434 end
3535
36- def handle ( "multipart/form-data" , % { params: % { "json_file " => file } } = conn ) do
36+ def handle ( _ , % { params: % { "json " => json } } = conn ) when is_binary ( json ) do
3737 conn
38- |> put_parsed_job ( file |> read_file ( ) )
38+ |> put_parsed_job ( json )
3939 end
4040
4141 def handle ( content_type , conn ) do
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ defmodule Librecov.Templates.CommentTemplate do
1919 branch: branch
2020 } = build
2121 ) do
22- build = Repo . preload ( build , :jobs )
22+ build = Librecov. Repo. preload ( build , :jobs )
2323 real_previous_coverage = project_coverage || previous_coverage || 0.0
2424 cov_dif = coverage_diff ( coverage , real_previous_coverage )
2525
You can’t perform that action at this time.
0 commit comments