updates.rb 469 B

12345678910111213141516
  1. # Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Subscriptions
  3. class User::Current::RecentView::Updates < BaseSubscription
  4. description 'Updates to the recently viewed items of the current user'
  5. subscription_scope :current_user_id
  6. field :recent_views_updated, Boolean, null: true, description: 'The recent view list of the user has changed.'
  7. def update
  8. { recent_views_updated: true }
  9. end
  10. end
  11. end