Skip to content

Commit

Permalink
Fix UsageEvent for UserTaskState changed (#49409)
Browse files Browse the repository at this point in the history
It was using the TaskType in the IssueType field.
  • Loading branch information
marcoandredinis authored Dec 3, 2024
1 parent c71dd22 commit ce054e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth/usertasks/usertasksv1/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (s *Service) emitCreateAuditEvent(ctx context.Context, req *usertasksv1.Use
func userTaskToUserTaskStateEvent(ut *usertasksv1.UserTask) *usagereporter.UserTaskStateEvent {
ret := &usagereporter.UserTaskStateEvent{
TaskType: ut.GetSpec().GetTaskType(),
IssueType: ut.GetSpec().GetTaskType(),
IssueType: ut.GetSpec().GetIssueType(),
State: ut.GetSpec().GetState(),
}
if ut.GetSpec().GetTaskType() == usertasks.TaskTypeDiscoverEC2 {
Expand Down

0 comments on commit ce054e4

Please sign in to comment.