Module: CommandTower::Services::Messaging::Inbox::BulkMutation

Defined in:
app/services/command_tower/services/messaging/inbox.rb

Instance Method Summary collapse

Instance Method Details

#callObject



93
94
95
96
97
98
# File 'app/services/command_tower/services/messaging/inbox.rb', line 93

def call
  with_recipient do |recipient_id|
    result = yield(recipient_id)
    context.bulk_result = { ids: result.ids, count: result.count, changed_count: result.changed_count }
  end
end