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