mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-24 07:15:43 +00:00
adjust query daily checklist
This commit is contained in:
@@ -75,7 +75,7 @@ type DailyChecklistListItem struct {
|
||||
RejectReason *string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
Kandang entity.Kandang
|
||||
Kandang entity.KandangGroup
|
||||
TotalPhase int
|
||||
TotalActivity int
|
||||
Progress int
|
||||
@@ -341,9 +341,9 @@ func (s dailyChecklistService) GetAll(c *fiber.Ctx, params *validation.Query) ([
|
||||
}
|
||||
}
|
||||
|
||||
kandangMap := make(map[uint]entity.Kandang)
|
||||
kandangMap := make(map[uint]entity.KandangGroup)
|
||||
if len(kandangIDs) > 0 {
|
||||
var kandangs []entity.Kandang
|
||||
var kandangs []entity.KandangGroup
|
||||
if err := s.Repository.DB().WithContext(c.Context()).
|
||||
Where("id IN ?", kandangIDs).
|
||||
Preload("Location").
|
||||
|
||||
Reference in New Issue
Block a user