mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Fix tenant welcome email delivery (#354)
This commit is contained in:
committed by
GitHub
parent
1f99b6867e
commit
1396b736e3
@@ -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}" }
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user