FastingSessionDoc has stages: unknown[] not currentStage: string. - Replace currentStage cast with hasStages check (session.stages.length > 0) - Fix protocolId extraction to use direct field (session?.protocolId) - Report currentStage derived from stages.length as 'stage_N' indicator |
||
|---|---|---|
| .. | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| Dockerfile | ||
| package.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||