mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 14:17:00 +08:00
12 lines
473 B
Ruby
12 lines
473 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ProjectsJsonExportJob < ApplicationJob
|
|
def perform(task_ids, callback, user_id)
|
|
user = User.find(user_id)
|
|
projects_json_export_service = ProjectsJsonExportService.new(task_ids,
|
|
callback,
|
|
user)
|
|
projects_json_export_service.generate_data
|
|
projects_json_export_service.post_request
|
|
end
|
|
end
|