From e748d11bfd2232b77aeb5dae0d1e76ebb2988afb Mon Sep 17 00:00:00 2001 From: neodarz Date: Thu, 9 Feb 2017 14:07:40 +0100 Subject: Update the column name transcrib_file to audio_name --- web/views/audio_file_api_view.ex | 2 +- web/views/audio_file_view.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'web/views') 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 -- cgit v1.2.1