@@ -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