Skip to content

Commit

Permalink
fix: typo in tchap room ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Hajar AIT EL KADI committed Oct 26, 2023
1 parent 5ce4423 commit 9d3e12d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data_pipelines/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# Notification
TCHAP_ANNUAIRE_WEBHOOK = Variable.get("TCHAP_ANNUAIRE_WEBHOOK", "")
TCHA_ANNUAIRE_ROOM_ID = Variable.get("TCHA_ANNUAIRE_ROOM_ID", "")
TCHAP_ANNUAIRE_ROOM_ID = Variable.get("TCHAP_ANNUAIRE_ROOM_ID", "")
EMAIL_LIST = Variable.get("EMAIl_LIST", "")

# Minio
Expand Down
4 changes: 2 additions & 2 deletions data_pipelines/utils/tchap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dag_datalake_sirene.data_pipelines.config import (
AIRFLOW_ENV,
TCHAP_ANNUAIRE_WEBHOOK,
TCHA_ANNUAIRE_ROOM_ID,
TCHAP_ANNUAIRE_ROOM_ID,
)


Expand All @@ -25,7 +25,7 @@ def send_message(
return None
if AIRFLOW_ENV == "prod":
endpoint_url = TCHAP_ANNUAIRE_WEBHOOK
data = {"roomId": TCHA_ANNUAIRE_ROOM_ID, "message": text}
data = {"roomId": TCHAP_ANNUAIRE_ROOM_ID, "message": text}
if image_url:
data["attachments"] = [{"image_url": image_url}]

Expand Down

0 comments on commit 9d3e12d

Please sign in to comment.