diff options
-rw-r--r-- | web/controllers/audio_file_controller.ex | 3 |
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} -> |