Skip to content

Commit

Permalink
fix: non messaging integration not sending full report (#1706)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshvardhan Karn authored Nov 3, 2023
1 parent 88f69f5 commit e5cc1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepfence_worker/cronjobs/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ func processIntegration[T any](ctx context.Context, task *asynq.Task, integratio
if integration.IsMessagingFormat(integrationRow.IntegrationType) {
updatedResults = FormatForMessagingApps(results, integrationRow.Resource)
} else {
updatedResults = []map[string]interface{}{}
for _, r := range results {
updatedResults = []map[string]interface{}{}
updatedResults = append(updatedResults, utils.ToMap[T](r))
}
}
Expand Down

0 comments on commit e5cc1e3

Please sign in to comment.