pull/16098/head
Alberto Miedes Garcés 4 years ago
parent d9dd6b6039
commit a3d4f71682

@ -10,13 +10,13 @@ module AccountTypeCommands
# Don't break if account_type does not exist, as it is harmless
if @account_type.nil?
logger.warn(message: 'AccountType not found')
logger.warn(log_context.merge(message: 'AccountType not found'))
return
end
@account_type.destroy!
logger.info(message: 'AccountType destroyed')
logger.info(log_context.merge(message: 'AccountType destroyed'))
end
def account_type

@ -8,7 +8,7 @@ module AccountTypeCommands
if rate_limit_changed?
@account_type.rate_limit.update!(@received_rate_limit.rate_limit_attributes)
logger.info(message: 'Rate limit updated')
logger.info(log_context.merge(message: 'Rate limit updated'))
::Resque.enqueue(::Resque::UserJobs::RateLimitsJobs::SyncRedis, @account_type.account_type)
end
end

Loading…
Cancel
Save