@@ 269,14 269,12 @@ before nil, to: /\Acustomer_/, from: /(\A|@)#{FROM_BACKEND}(\/|\Z)/ do |s|
StatsD.increment("stanza_customer")
Sentry.get_current_scope.set_transaction_name("stanza_customer")
- log.info "Stanza from backend, check for customer #{s.to} / #{s.from}"
CustomerRepo.new(set_user: Sentry.method(:set_user)).find(
s.to.node.delete_prefix("customer_")
).then do |customer|
ReachabilityRepo::SMS.new
.find(customer, s.from.node, stanza: s).then do |reach|
reach.filter do
- log.info "Stanza from backend, send to customer #{s.to} / #{s.from}"
customer.stanza_to(s)
end
end