Skip to content

Commit

Permalink
Fix emailer issue (#1672)
Browse files Browse the repository at this point in the history
* fix: flags use env from config

* chore: emailer uses latest version of namex
  • Loading branch information
EPortman authored Jan 13, 2025
1 parent eba5ff7 commit 6187e97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/namex/VERSION.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.2.22'
__version__ = '1.2.23'
5 changes: 3 additions & 2 deletions api/namex/services/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ def init_app(self, app):
"""Initialize the Feature Flag environment."""
self.app = app
self.sdk_key = app.config.get('NAMEX_LD_SDK_ID')
env = app.config.get('ENVIRONMENT')

if self.sdk_key or app.env != 'production':
if self.sdk_key or env != 'production':

if app.env == 'production':
if env == 'production':
config = Config(sdk_key=self.sdk_key)
else:
factory = FileDataSource.factory(paths=['flags.json'],
Expand Down
2 changes: 1 addition & 1 deletion services/emailer/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6187e97

Please sign in to comment.