diff options
Diffstat (limited to 'web/models/audio_file.ex')
-rw-r--r-- | web/models/audio_file.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/models/audio_file.ex b/web/models/audio_file.ex index 46cf05f..f7be8de 100644 --- a/web/models/audio_file.ex +++ b/web/models/audio_file.ex @@ -3,7 +3,7 @@ defmodule TheTranscriberBackend.AudioFile do schema "audio_file" do field :audio_path, :string - field :transcription_file_path, :string + field :audio_name, :string field :audio_duration, :string timestamps() @@ -15,7 +15,7 @@ defmodule TheTranscriberBackend.AudioFile do def changeset(struct, params \\ %{}) do struct - |> cast(params, [:audio_path, :transcription_file_path, :audio_duration]) - |> validate_required([:audio_path, :transcription_file_path, :audio_duration]) + |> cast(params, [:audio_path, :audio_name, :audio_duration]) + |> validate_required([:audio_path, :audio_name, :audio_duration]) end end |