Feat[BE]: implement max target quantity retrieval for kandangs and update routes

This commit is contained in:
aguhh18
2026-01-26 18:03:54 +07:00
parent b83ebc0ff9
commit 7a704c4ec4
5 changed files with 98 additions and 7 deletions
@@ -85,6 +85,7 @@ func (r *projectFlockKandangRepositoryImpl) GetByProjectFlockID(ctx context.Cont
var records []entity.ProjectFlockKandang
if err := r.db.WithContext(ctx).
Where("project_flock_id = ?", projectFlockID).
Preload("Kandang").
Find(&records).Error; err != nil {
return nil, err
}