---
sgx_jmp.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sgx_jmp.rb b/sgx_jmp.rb
index b0aa2ff..38c1daf 100644
--- a/sgx_jmp.rb
+++ b/sgx_jmp.rb
@@ -847,14 +847,14 @@ Command.new(
reply.command << FormTemplate.render("lnp")
end
]).then { |(customer, iq)|
- order = PortInOrder.parse(customer, iq.form).complete_with { |form|
+ PortInOrder.parse(customer, iq.form).complete_with { |form|
Command.reply { |reply|
reply.allowed_actions = [:next]
reply.command << form
}.then(&:form)
+ }.then { |order|
+ [order, customer]
}
-
- [order, customer]
}.then do |(order, customer)|
order_id = BandwidthIris::PortIn.create(order.to_h)[:order_id]
customer.stanza_from(Blather::Stanza::Message.new(
--
2.34.1