Remove remaining status_id references after in_progress migration
- Remove Preload("Status") from worker handler and repositories
- Update seeds to use in_progress boolean instead of status_id
- Remove task_taskstatus table creation from lookup seeds
- Update documentation to reflect in_progress boolean pattern
Fixes notification worker error:
"Status: unsupported relations for schema Task"
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -105,7 +105,6 @@ func (r *ContractorRepository) GetTasksForContractor(contractorID uint) ([]model
|
||||
var tasks []models.Task
|
||||
err := r.db.Preload("Category").
|
||||
Preload("Priority").
|
||||
Preload("Status").
|
||||
Where("contractor_id = ?", contractorID).
|
||||
Order("due_date ASC NULLS LAST").
|
||||
Find(&tasks).Error
|
||||
|
||||
@@ -316,7 +316,6 @@ func (r *ResidenceRepository) GetTasksForReport(residenceID uint) ([]models.Task
|
||||
err := r.db.
|
||||
Preload("Category").
|
||||
Preload("Priority").
|
||||
Preload("Status").
|
||||
Preload("Completions").
|
||||
Preload("Completions.Images").
|
||||
Preload("Completions.CompletedBy").
|
||||
|
||||
Reference in New Issue
Block a user