diff options
Diffstat (limited to 'internal/chore/repo')
-rw-r--r-- | internal/chore/repo/repository.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/chore/repo/repository.go b/internal/chore/repo/repository.go index 52fa4ab..51ebb2c 100644 --- a/internal/chore/repo/repository.go +++ b/internal/chore/repo/repository.go @@ -243,7 +243,7 @@ func (r *ChoreRepository) GetChoreDetailByID(c context.Context, choreID int, cir ) ) AS recent_history ON chores.id = recent_history.chore_id`). Where("chores.id = ? and chores.circle_id = ?", choreID, circleID). - Group("chores.id"). + Group("chores.id, recent_history.last_completed_date"). First(&choreDetail).Error; err != nil { return nil, err |