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

fix: index error during summary generation (resolve #361)

chore(sentry): include stacktrace with panics
This commit is contained in:
Ferdinand Mütsch
2022-04-20 21:36:39 +02:00
parent d778612242
commit 4b0a3cf0d6
5 changed files with 12 additions and 18 deletions

View File

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