feat: update environment variables to set DATA_ENV and DB_ENV to 'prod'
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m39s
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m39s
This commit is contained in:
@@ -212,10 +212,10 @@ def create_test_digest_token():
|
||||
def send_test_digest():
|
||||
"""Trigger a digest email for a specific user by email address.
|
||||
|
||||
Only active when DB_ENV is not 'production'. Requires admin authentication.
|
||||
Only active when DB_ENV is not 'prod'. Requires admin authentication.
|
||||
Note: actual email delivery is skipped in e2e mode by email_sender.
|
||||
"""
|
||||
if os.environ.get('DB_ENV') == 'production':
|
||||
if os.environ.get('DB_ENV') == 'prod':
|
||||
return jsonify({'error': 'Not found', 'code': 'NOT_FOUND'}), 404
|
||||
|
||||
user_id = get_validated_user_id()
|
||||
@@ -253,10 +253,10 @@ def send_test_digest():
|
||||
def trigger_test_chore_expiry():
|
||||
"""Trigger the chore expiry notification check for a specific user by email address.
|
||||
|
||||
Only active when DB_ENV is not 'production'. Requires admin authentication.
|
||||
Only active when DB_ENV is not 'prod'. Requires admin authentication.
|
||||
Note: actual push delivery requires VAPID keys to be configured.
|
||||
"""
|
||||
if os.environ.get('DB_ENV') == 'production':
|
||||
if os.environ.get('DB_ENV') == 'prod':
|
||||
return jsonify({'error': 'Not found', 'code': 'NOT_FOUND'}), 404
|
||||
|
||||
user_id = get_validated_user_id()
|
||||
|
||||
Reference in New Issue
Block a user