mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +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
|