JamesFlare1212 5f630f8599 perf(api): optimize cookie validation with fail-fast strategy
Before: Pre-validate cookie before every request (2-4 API calls per activity)
After: Direct request, only validate on 4xx error (1-2 API calls per activity)

Changes:
- Remove pre-validation step in fetchActivityData
- Keep existing 4xx error handling with re-login logic
- Add debug log to track cookie usage

Impact: ~20-30% reduction in API calls for normal scenarios
Benefit: Faster scanning, less load on engage API
2026-04-06 21:37:06 -04:00
2025-05-12 21:45:57 -04:00
2025-05-12 21:45:57 -04:00
2025-05-10 23:39:39 -04:00
2025-05-10 23:39:39 -04:00

How to Run

copy example.env

cp example.env .env

edit .env

API_USERNAME is your engage username in URL-encode.
API_PASSWORD is your engage password in URL-encode.

Description
No description provided
Readme 639 KiB
Languages
TypeScript 98.1%
Dockerfile 1.1%
Shell 0.8%