unapply `force_sensitive` during domain policy resets

staging
multiple creatures 2019-08-07 19:05:48 -05:00
parent 72592b3c9c
commit bcfa50f5f5
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ class UnblockDomainService < BaseService
def process_retroactive_updates
blocked_accounts.in_batches.update_all(update_options) unless domain_block.noop?
if @domain_block.force_sensitive?
blocked_accounts.where(force_sensitive: true).in_batches.update_all(force_sensitive: false)
end
end
def blocked_accounts