Fix tenant welcome email delivery (#354)

This commit is contained in:
Riccardo Graziosi
2024-05-23 23:00:03 +02:00
committed by GitHub
parent 1f99b6867e
commit 1396b736e3
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ class TenantsController < ApplicationController
if is_o_auth_login
CreateStripeCustomer.new().run
TenantMailer.trial_start(tenant: @tenant).deliver_later
TenantMailer.trial_start(tenant: @tenant).deliver_now # deliver_later doesn't work here
end
logger.info { "New tenant registration: #{Current.tenant.inspect}" }

View File

@@ -22,7 +22,7 @@
<%= render 'layouts/no_active_subscription_banner' %>
<% end %>
<% if Rails.application.multi_tenancy? && request.subdomain == "feedback" %>
<% if Rails.application.multi_tenancy? && @tenant && @tenant.subdomain == "feedback" %>
<%= render 'layouts/promo_banner' %>
<% end %>