Files
phaseflow/src/app
Petru Paler 3a06bff4d4
All checks were successful
Deploy / deploy (push) Successful in 2m38s
Fix Garmin sync to handle PocketBase date strings
PocketBase returns date fields as ISO strings, not Date objects.
The sync was failing with "e.getTime is not a function" because
the code expected Date objects.

- Export mapRecordToUser from pocketbase.ts
- Use mapRecordToUser in cron route to properly parse dates
- Add test for handling date fields as ISO strings

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 07:38:37 +00:00
..