FIX: Do not fail if Postgres is not available (#12440)
Follow-up to 50f8782def
.
This commit is contained in:
parent
4dcdbd7801
commit
6eab1e83c3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue