class DashOverlord::UseCases::V1::Videos::Import::FromPostgresToElasticSearch::Base
DashOverlord::UseCases::V1::Videos::Import::FromPostgresToElasticSearch::Base.perform
Public Instance Methods
perform()
click to toggle source
# File lib/dash_overlord/use_cases/v1/videos/import/from_postgres_to_elastic_search/base.rb, line 12 def perform context.segment_uid = 'hhc' invoke! DeleteElasticSearchBeeVideos postgres_bee_videos.each do |postgres_bee_video| invoke! StoreBeeVideo, postgres_bee_video: postgres_bee_video end end
postgres_bee_videos()
click to toggle source
# File lib/dash_overlord/use_cases/v1/videos/import/from_postgres_to_elastic_search/base.rb, line 22 def postgres_bee_videos Models::V1::BeeVideo.where(segment_uid: segment_uid) end