FIX: Do not fail if Postgres is not available (#12440)

Follow-up to 50f8782def.
This commit is contained in:
Bianca Nenciu 2021-03-19 12:07:39 +02:00 committed by GitHub
parent 4dcdbd7801
commit 6eab1e83c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ after_initialize do
'../lib/discourse_narrative_bot/welcome_post_type_site_setting.rb'
].each { |path| load File.expand_path(path, __FILE__) }
RailsMultisite::ConnectionManagement.each_connection do
RailsMultisite::ConnectionManagement.safe_each_connection do
if SiteSetting.discourse_narrative_bot_enabled
# Disable welcome message because that is what the bot is supposed to replace.
SiteSetting.send_welcome_message = false