auto-generate.ts and all three manual task-generation routes computed due dates purely from a policy/group anchor date plus a template's daysOffset, with no check against the current date. Surfaced when a manual backfill for two clients created tasks anchored to an already- expired policy term, producing due dates back in 2024. Add isRelevantDueDate() and apply it at every task-creation call site so no template-generated task is ever born already overdue. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| lib | ||
| types | ||
| middleware.ts | ||