mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 19:57:52 +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
|
if is_o_auth_login
|
||||||
CreateStripeCustomer.new().run
|
CreateStripeCustomer.new().run
|
||||||
TenantMailer.trial_start(tenant: @tenant).deliver_later
|
TenantMailer.trial_start(tenant: @tenant).deliver_now # deliver_later doesn't work here
|
||||||
end
|
end
|
||||||
|
|
||||||
logger.info { "New tenant registration: #{Current.tenant.inspect}" }
|
logger.info { "New tenant registration: #{Current.tenant.inspect}" }
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<%= render 'layouts/no_active_subscription_banner' %>
|
<%= render 'layouts/no_active_subscription_banner' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if Rails.application.multi_tenancy? && request.subdomain == "feedback" %>
|
<% if Rails.application.multi_tenancy? && @tenant && @tenant.subdomain == "feedback" %>
|
||||||
<%= render 'layouts/promo_banner' %>
|
<%= render 'layouts/promo_banner' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user