mirror of
https://github.com/rishikanthc/Scriberr.git
synced 2026-06-28 06:46:25 +00:00
Phase 5: Refactor queue.go (10 DB calls removed) - Added JobRepository to TaskQueue struct and constructor - Added UpdateStatus, UpdateError, FindByStatus, CountByStatus methods to JobRepository - Replaced all database.DB calls with repository methods Phase 6: Refactor chat_handlers.go and summarize_handlers.go (6 DB calls removed) - Added GetMessageCountsBySessionIDs and GetLastMessagesBySessionIDs to ChatRepository - Added UpdateSummary to JobRepository - Replaced batch queries and update calls with repository methods - Removed database import from both files Phase 7: Refactor quick_transcription.go (3 DB calls removed) - Added JobRepository injection to QuickTranscriptionService - Updated constructor and all callers Summary: 46+ database.DB calls replaced with repository methods across 7 phases. All tests pass, build succeeds.