app_maintenance.rb 529 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Subscriptions
  3. class AppMaintenance < BaseSubscription
  4. description 'Application update/change events'
  5. broadcastable true
  6. field :type, Gql::Types::Enum::AppMaintenanceTypeType, description: 'Maintenance type, may trigger actions in the front end'
  7. def self.authorize(...)
  8. true # This subscription should be available for all (including unauthenticated) users.
  9. end
  10. def update
  11. object
  12. end
  13. end
  14. end