From 5ce4423f5b63e73f8dcb53b7d783c3e843e323f7 Mon Sep 17 00:00:00 2001 From: Hajar AIT EL KADI Date: Thu, 26 Oct 2023 15:47:39 +0200 Subject: [PATCH] feat: only use tchap in prod and staging --- data_pipelines/utils/tchap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_pipelines/utils/tchap.py b/data_pipelines/utils/tchap.py index a996a526..0ff13157 100644 --- a/data_pipelines/utils/tchap.py +++ b/data_pipelines/utils/tchap.py @@ -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}