Skip to content

Commit

Permalink
feat: only use tchap in prod and staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Hajar AIT EL KADI committed Oct 26, 2023
1 parent a0a7b97 commit 5ce4423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_pipelines/utils/tchap.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def send_message(
"""
if not endpoint_url:
if AIRFLOW_ENV == "dev":
endpoint_url = TCHAP_ANNUAIRE_WEBHOOK
return None
if AIRFLOW_ENV == "prod":
endpoint_url = TCHAP_ANNUAIRE_WEBHOOK
data = {"roomId": TCHA_ANNUAIRE_ROOM_ID, "message": text}
Expand Down

0 comments on commit 5ce4423

Please sign in to comment.