Move history archive max timestamp query into repository

This commit is contained in:
2026-04-15 21:18:44 +02:00
parent cdb0c3681e
commit 56f03f39c7
4 changed files with 38 additions and 7 deletions

View File

@@ -81,6 +81,8 @@ Reference: `Docs/Refactoring.md` for full analysis of each issue.
**Docs changes needed:** None beyond `Refactoring.md`.
**Status:** Completed ✅
**Why this is needed:** Raw SQL in the service layer bypasses the repository abstraction. It makes the service harder to test (requires a real DB schema) and harder to maintain (schema changes must be tracked in the service, not just the repository).
---