From f52062709c2a78044c2d9d2b3acbd85de4be9200 Mon Sep 17 00:00:00 2001 From: rasmus Date: Thu, 17 Aug 2023 21:29:07 +0300 Subject: [PATCH] change slack env names again --- inventory-app/api.py | 2 +- inventory-app/const.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inventory-app/api.py b/inventory-app/api.py index bd95c35..0f87d0a 100644 --- a/inventory-app/api.py +++ b/inventory-app/api.py @@ -63,7 +63,7 @@ def get_group_cards(): @page_api.route("/api/slack/doorboy", methods=['POST']) def view_slack_doorboy(): print(request.data) - if request.form.get("token") != const.SLACK_TOKEN: + if request.form.get("token") != const.SLACK_VERIFICATION_TOKEN: return "Invalid token was supplied" if request.form.get("channel_id") not in ("C01CWPF5H8W", "CDL9H8Q9W"): return "Invalid channel was supplied" diff --git a/inventory-app/const.py b/inventory-app/const.py index 3ca09e0..ad1c2f6 100644 --- a/inventory-app/const.py +++ b/inventory-app/const.py @@ -17,5 +17,5 @@ AWS_ENDPOINT_URL = os.environ["AWS_ENDPOINT_URL"] INVENTORY_ASSETS_BASE_URL = os.environ["INVENTORY_ASSETS_BASE_URL"] MONGO_URI = os.environ["MONGO_URI"] MEMBERS_HOST = os.environ["MEMBERS_HOST"] -SLACK_TOKEN = os.environ["SLACK_TOKEN"] -SLACK_CALLbACK = os.environ["SLACK_CALLBACK"] +SLACK_VERIFICATION_TOKEN = os.environ["SLACK_VERIFICATION_TOKEN"] +SLACK_CALLBACK = os.environ["SLACK_CALLBACK"]