Skip to content

Commit

Permalink
refactor: Remove unused code in Huntress module routes
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorwalton committed Nov 4, 2024
1 parent 73ac945 commit 380c37d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/app/integrations/modules/routes/huntress.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from app.integrations.routes import find_customer_integration
from app.integrations.utils.utils import extract_auth_keys
from app.integrations.utils.utils import get_customer_integration_response
from app.middleware.license import get_license
from app.utils import get_connector_attribute

module_huntress_router = APIRouter()
Expand Down Expand Up @@ -94,9 +93,9 @@ async def collect_huntress_route(huntress_request: InvokeHuntressRequest, sessio

collect_huntress_data = await get_collect_huntress_data(huntress_request, session, auth_keys)

license = await get_license(session)
logger.info(f"Collecting Huntress Events for {huntress_request.customer_code}")

await post_to_copilot_huntress_module(data=collect_huntress_data, license_key=license.license_key)
await post_to_copilot_huntress_module(data=collect_huntress_data)

except Exception as e:
logger.error(f"Error during DB session: {str(e)}")
Expand Down

0 comments on commit 380c37d

Please sign in to comment.