1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: broken summary aggregation (resolve #385)

This commit is contained in:
Ferdinand Mütsch 2022-07-03 20:39:16 +02:00
parent b6a8185957
commit d5a85639b1

View File

@ -109,7 +109,7 @@ func (r *SummaryRepository) populateItems(summaries []*models.Summary, condition
} }
for _, item := range items { for _, item := range items {
if _, ok := summaryMap[item.SummaryID]; ok { if _, ok := summaryMap[item.SummaryID]; !ok {
continue continue
} }
l := summaryMap[item.SummaryID][0].ItemsByType(item.Type) l := summaryMap[item.SummaryID][0].ItemsByType(item.Type)