diff options
Diffstat (limited to '')
-rw-r--r-- | web/views/audio_file_api_view.ex | 2 | ||||
-rw-r--r-- | web/views/audio_file_view.ex | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/views/audio_file_api_view.ex b/web/views/audio_file_api_view.ex index f5dbba9..1042be0 100644 --- a/web/views/audio_file_api_view.ex +++ b/web/views/audio_file_api_view.ex @@ -14,7 +14,7 @@ defmodule TheTranscriberBackend.AudioFileAPIView do def render("audio_file_api.json", %{audio_file_api: audio_file_api}) do %{id: audio_file_api.id, audio_path: audio_file_api.audio_path, - audio_transcription_file_path: audio_file_api.transcription_file_path, + audio_name: audio_file_api.audio_name, audio_duration: audio_file_api.audio_duration} end end diff --git a/web/views/audio_file_view.ex b/web/views/audio_file_view.ex index 8cefe83..aa9c742 100644 --- a/web/views/audio_file_view.ex +++ b/web/views/audio_file_view.ex @@ -1,7 +1,7 @@ defmodule TheTranscriberBackend.AudioFileView do use TheTranscriberBackend.Web, :view - #attributes [:id, :audio_path, :transcription_file_path, :audio_duration] + #attributes [:id, :audio_path, :audio_name, :audio_duration] #has_many :audio_file_api, link |