Skip to content

Commit

Permalink
fix: fix package name
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Dec 18, 2024
1 parent b9a1720 commit 89b0980
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/es/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -111,6 +112,7 @@ type TaskResult struct {
func (r TaskResult) KeysAndIndex() ([]string, string) {
return []string{
r.ResourceID,
r.TaskType,
r.ResultType,
}, ResourceTypeToESIndex(r.ResultType)
}

0 comments on commit 89b0980

Please sign in to comment.