diff options
author | neodarz <neodarz@neodarz.net> | 2017-02-09 14:07:40 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-02-09 14:07:40 +0100 |
commit | e748d11bfd2232b77aeb5dae0d1e76ebb2988afb (patch) | |
tree | a30329b2fbab4dd583761f729f20d7bffa447cf9 /web/views | |
parent | e455009b1872815c4fad91c389af9f7a27a6ba28 (diff) | |
download | the_transcriber_backend-e748d11bfd2232b77aeb5dae0d1e76ebb2988afb.tar.xz the_transcriber_backend-e748d11bfd2232b77aeb5dae0d1e76ebb2988afb.zip |
Update the column name transcrib_file to audio_name
Diffstat (limited to 'web/views')
-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 |