@ -9,12 +9,12 @@ class Videos::BatchPublishService < ApplicationService
end
def call
video_params = Array.wrap(params[:videos]).compact
video_params = Array.wrap().compact
return if video_params.blank?
video_ids = []
ActiveRecord::Base.transaction do
video_params.each do |param|
video_params.each do |param|params[:videos]
video = user.videos.find_by(uuid: param[:video_id])
next if video.blank? || video.processing_video_apply.present?
@ -970,6 +970,10 @@ Rails.application.routes.draw do
resources :carousels, only: [:index, :create, :update, :destroy] do
post :drag, on: :collection
resources :laboratories, only: [:index, :create, :destroy] do
resource :laboratory_setting, only: [:show, :update]
resource :laboratory_user, only: [:create, :destroy]
resources :colleges, only: [] do