mirror of
https://github.com/keven1024/015.git
synced 2026-06-04 11:29:36 +00:00
fix(backend): skip processing of queue items with zero processed and failed counts in GetStat function
This commit is contained in:
@@ -72,6 +72,9 @@ func GetStat(c echo.Context) error {
|
||||
queuesChartData := make(map[string]QueueChartData)
|
||||
for _, item := range queues {
|
||||
dateKey := item.Date.Format(DateLayout)
|
||||
if item.Processed == 0 && item.Failed == 0 {
|
||||
continue
|
||||
}
|
||||
queuesChartData[dateKey] = QueueChartData{
|
||||
Processed: item.Processed,
|
||||
Failed: item.Failed,
|
||||
|
||||
Reference in New Issue
Block a user