From 191acf42f82454b3551be278146468d286e78bb3 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 25 Apr 2023 20:17:04 -0500 Subject: [PATCH] Fix GetCustomer.for invocations --- lib/registration.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/registration.rb b/lib/registration.rb index 7d39f8c1c527f510401e1f2b8208f067ea7692ba..25c0de85e4ac31408b3cb024c18772ca8689935b 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -607,7 +607,7 @@ class Registration if is.empty? new(customer, tel, db: db) else - GetInvite.for(is[0]) + GetInvite.for(customer, is[0], tel, db: db) end end end @@ -643,7 +643,7 @@ class Registration if iq.form.field(ACTION_VAR)&.value == "custom_domain" CustomDomain.new(@customer, @tel, old: @old).write elsif @old && (!subdomain || domain == @old.domain) - GetInvite.for(@old, @tel).then(&:write) + GetInvite.for(@customer, @old, @tel, db: @db).then(&:write) else launch(domain) end @@ -736,7 +736,7 @@ class Registration if iq.prev? Snikket.new(@customer, @tel, old: @instance, db: @db).write else - GetInvite.for(@instance).then(&:write) + GetInvite.for(@customer, @instance, @tel, db: @db).then(&:write) end end end