`refactor: Remove unused code in Huntress module routes`
Taylor committed
Nov 4, 2024 at 16:50 UTC
380c37de5066a994203f66f245353c66bf3d42aa
1 file changed
+2
-3
backend/app/integrations/modules/routes/huntress.py
+2
-3
@@ -12,7 +12,6 @@ from app.integrations.modules.services.huntress import post_to_copilot_huntress_
12
from app.integrations.routes import find_customer_integration
13
from app.integrations.utils.utils import extract_auth_keys
14
from app.integrations.utils.utils import get_customer_integration_response
15
-from app.middleware.license import get_license
15
from app.utils import get_connector_attribute
16
17
module_huntress_router = APIRouter()
@@ -94,9 +93,9 @@ async def collect_huntress_route(huntress_request: InvokeHuntressRequest, sessio
93
94
collect_huntress_data = await get_collect_huntress_data(huntress_request, session, auth_keys)
95
97
- license = await get_license(session)
96
+ logger.info(f"Collecting Huntress Events for {huntress_request.customer_code}")
97
99
- await post_to_copilot_huntress_module(data=collect_huntress_data, license_key=license.license_key)
98
+ await post_to_copilot_huntress_module(data=collect_huntress_data)
99
100
except Exception as e:
101
logger.error(f"Error during DB session: {str(e)}")