Description
The API is returning 500 Internal Server Error for data fetch endpoints (steps, nutrition, etc.) while the login endpoint works correctly.
Steps to reproduce
- Login via POST /api/v2/login - Returns 201 ✅
- Request data via POST /api/v2/fetch/steps with valid Bearer token - Returns 500 ❌
Observed behavior
- Login: Works (status 201)
- /fetch/steps: 500 Internal Server Error
- /fetch/nutrition: 404 or 500
- Other /fetch/* endpoints: Also returning 500
Expected behavior
Data endpoints should return health data for authenticated users.
Environment
Additional context
The server appears to be running but data retrieval is broken. This may be related to the recent MongoDB migration mentioned in the README.
Description
The API is returning 500 Internal Server Error for data fetch endpoints (steps, nutrition, etc.) while the login endpoint works correctly.
Steps to reproduce
Observed behavior
Expected behavior
Data endpoints should return health data for authenticated users.
Environment
Additional context
The server appears to be running but data retrieval is broken. This may be related to the recent MongoDB migration mentioned in the README.