From ea0300ec057f07745e04eed91653e3995e0e9545 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 25 Apr 2023 20:05:36 -0500 Subject: [PATCH] Pass customer to CustomDomain properly --- lib/registration.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/registration.rb b/lib/registration.rb index 687149d4f4d3fb4b2d2c78d0a43276247b00ca23..7d39f8c1c527f510401e1f2b8208f067ea7692ba 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -641,7 +641,7 @@ class Registration subdomain = iq.form.field("subdomain")&.value domain = "#{subdomain}.snikket.chat" if iq.form.field(ACTION_VAR)&.value == "custom_domain" - CustomDomain.new(@tel, old: @old).write + CustomDomain.new(@customer, @tel, old: @old).write elsif @old && (!subdomain || domain == @old.domain) GetInvite.for(@old, @tel).then(&:write) else @@ -695,7 +695,7 @@ class Registration reply.command << form }.then do |iq| if iq.prev? - CustomDomain.new(@tel, old: @instance).write + CustomDomain.new(@customer, @tel, old: @instance).write else launch(@instance.domain) end