Chatwoot/lib/tasks/import_to_cloud.rake
2022-06-04 15:09:32 +05:30

9 lines
287 B
Ruby

namespace :import do
desc 'import to cloud with account_id inbox_id'
task :build, [:account_id, :inbox_id, :type] => :environment do |_t, args|
MigrateToCloud::ImportToCloud.new(
account_id: args.account_id,
inbox_id: args.inbox_id
).perform(args.type)
end
end