start.rb 433 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Mutations
  3. class System::Import::Start < BaseMutation
  4. description 'Start the system import process'
  5. field :success, Boolean, null: false, description: 'Was the start successful?'
  6. def self.authorize(...)
  7. true
  8. end
  9. def resolve
  10. Service::System::Import::Run.new.execute
  11. { success: true }
  12. end
  13. end
  14. end