diff --git a/config/settings/base.py b/config/settings/base.py index 60788f836..d3035183c 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -555,6 +555,7 @@ SLACK_WEBHOOK_C4_CHANNEL = env.str("SLACK_WEBHOOK_C4_CHANNEL", "set-it") SLACK_WEBHOOK_C4_SUPPORT_CHANNEL = env.str("SLACK_WEBHOOK_C4_SUPPORT_CHANNEL", "set-it") SLACK_WEBHOOK_C4_TENDER_CHANNEL = env.str("SLACK_WEBHOOK_C4_TENDER_CHANNEL", "set-it") +SLACK_WEBHOOK_C4_TECH_NOTIFICATIONS_CHANNEL = env.str("SLACK_WEBHOOK_C4_TECH_NOTIFICATIONS_CHANNEL", "set-it") # API Marché APProch MARCHE_APPROCH_TOKEN_RECETTE = env.str("MARCHE_APPROCH_TOKEN_RECETTE", "set-it") diff --git a/lemarche/utils/apis/api_slack.py b/lemarche/utils/apis/api_slack.py index 32cec4f85..64677d132 100644 --- a/lemarche/utils/apis/api_slack.py +++ b/lemarche/utils/apis/api_slack.py @@ -28,7 +28,7 @@ def get_default_client(params={}): @task() def send_message_to_channel( - text: str, service_id: str = settings.SLACK_WEBHOOK_C4_SUPPORT_CHANNEL, client: requests.Session = None + text: str, service_id: str = settings.SLACK_WEBHOOK_C4_TECH_NOTIFICATIONS_CHANNEL, client: requests.Session = None ): """Huey task to send message to specific payload for specific slack service