From 89b098053a34631cfb63d2d2a591cc88d4a674b4 Mon Sep 17 00:00:00 2001 From: artaasadi Date: Wed, 18 Dec 2024 14:53:22 +0100 Subject: [PATCH] fix: fix package name --- pkg/es/messages.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/es/messages.go b/pkg/es/messages.go index 73bc872..3ea01f2 100644 --- a/pkg/es/messages.go +++ b/pkg/es/messages.go @@ -102,6 +102,7 @@ type TaskResult struct { ResourceID string `json:"resource_id"` ResourceName string `json:"resource_name"` Description interface{} `json:"description"` + TaskType string `json:"task_type"` ResultType string `json:"result_type"` Metadata map[string]string `json:"metadata"` DescribedBy string `json:"described_by"` @@ -111,6 +112,7 @@ type TaskResult struct { func (r TaskResult) KeysAndIndex() ([]string, string) { return []string{ r.ResourceID, + r.TaskType, r.ResultType, }, ResourceTypeToESIndex(r.ResultType) }