macros_update.rb 354 B

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Subscriptions
  3. class MacrosUpdate < BaseSubscription
  4. description 'Updated macros'
  5. field :macro_updated, Boolean, description: 'Some macro was updated'
  6. def authorized?
  7. true
  8. end
  9. def update
  10. { macro_updated: true }
  11. end
  12. end
  13. end