Skip to content

Commit

Permalink
enhancement(Search): add video URL (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree authored Aug 30, 2023
1 parent c7685ce commit 3e9e11f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/cf/lib/algolia/VideosIndex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ defmodule CF.Algolia.VideosIndex do
|> DB.Repo.preload(:speakers)
|> Map.update!(:speakers, &update_all_speakers/1)
|> Map.take(
~w(id title hash_id url language is_partner thumbnail youtube_id facebook_id youtube_offset speakers)a
~w(id title hash_id language is_partner thumbnail youtube_id facebook_id youtube_offset speakers)a
)
|> Map.put(:url, DB.Schema.Video.build_url(video))
end

def reindex_by_id(video_id) do
Expand Down

0 comments on commit 3e9e11f

Please sign in to comment.