From 6565363f129f2c4a82e2ff0b9c73d7dd4f27360e Mon Sep 17 00:00:00 2001 From: neodarz Date: Wed, 25 Jan 2017 12:26:11 +0100 Subject: fix changeset --- web/controllers/audio_file_controller.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web') 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} -> -- cgit v1.2.1