Skip to content

Commit

Permalink
Always set news_feed when deploying scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Jan 11, 2025
1 parent e4904b0 commit f5ca53b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openc3/lib/openc3/models/scope_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ def seed_database
SettingModel.set({ name: 'rubygems_url', data: ENV['RUBYGEMS_URL'] || 'https://rubygems.org' }, scope: @scope) unless setting
setting = SettingModel.get(name: 'pypi_url')
SettingModel.set({ name: 'pypi_url', data: ENV['PYPI_URL'] || 'https://pypi.org' }, scope: @scope) unless setting
setting = SettingModel.get(name: 'news_feed')
SettingModel.set({ name: 'news_feed', data: true }, scope: @scope) unless setting
# Set the news feed to true by default, don't bother checking if it's already set
SettingModel.set({ name: 'news_feed', data: true }, scope: @scope)
end
end
end

0 comments on commit f5ca53b

Please sign in to comment.