Fix a typo in a with clause in Upload module

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-08-03 18:47:28 +02:00
parent 3eb56b57aa
commit d0ff547417
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -69,7 +69,10 @@ defmodule Mobilizon.Web.Upload do
opts = get_opts(opts)
with {:ok, upload} <- prepare_upload(upload, opts),
upload = %__MODULE__{upload | path: upload.path || "#{upload.id}/#{upload.name}"},
%__MODULE__{} = upload <- %__MODULE__{
upload
| path: upload.path || "#{upload.id}/#{upload.name}"
},
{:ok, upload} <- Filter.filter(opts.filters, upload),
{:ok, url_spec} <- Uploader.put_file(opts.uploader, upload) do
{:ok,