aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-01-25 12:26:11 +0100
committerneodarz <neodarz@neodarz.net>2017-01-25 12:26:11 +0100
commit6565363f129f2c4a82e2ff0b9c73d7dd4f27360e (patch)
tree151dbc72076a183b4f3bb226055d9094f2346958 /web
parent8e65ac05eb7778785602f4504465e1dcbf035812 (diff)
downloadthe_transcriber_backend-6565363f129f2c4a82e2ff0b9c73d7dd4f27360e.tar.xz
the_transcriber_backend-6565363f129f2c4a82e2ff0b9c73d7dd4f27360e.zip
fix changeset
Diffstat (limited to 'web')
-rw-r--r--web/controllers/audio_file_controller.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/controllers/audio_file_controller.ex b/web/controllers/audio_file_controller.ex
index 3a73e87..630e0fe 100644
--- a/web/controllers/audio_file_controller.ex
+++ b/web/controllers/audio_file_controller.ex
@@ -20,7 +20,8 @@ defmodule TheTranscriberBackend.AudioFileController do
File.cp(upload.path, path)
end
changeset = AudioFile.changeset(%AudioFile{}, audio_file_params)
- Ecto.Changeset.put_change(changeset, :audio_path, path)
+ |> Ecto.Changeset.put_change(:audio_path, path)
+ IO.inspect changeset
case Repo.insert(changeset) do
{:ok, _audio_file} ->