aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/models/audio_file_api.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/models/audio_file_api.ex b/web/models/audio_file_api.ex
index 802d179..a66cdc4 100644
--- a/web/models/audio_file_api.ex
+++ b/web/models/audio_file_api.ex
@@ -17,7 +17,7 @@ defmodule TheTranscriberBackend.AudioFileAPI do
"""
def changeset(struct, params \\ %{}) do
struct
- |> cast(params, [])
- |> validate_required([])
+ |> cast(params, [:audio_path, :audio_name, :audio_duration])
+ |> validate_required([:audio_path, :audio_name, :audio_duration])
end
end