Skip to content

Commit

Permalink
fix api module
Browse files Browse the repository at this point in the history
  • Loading branch information
tigrato committed Jul 30, 2024
1 parent 1028828 commit 5ee4436
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions api/types/events/oneof.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,18 +692,6 @@ func ToOneOf(in AuditEvent) (*OneOf, error) {
out.Event = &OneOf_DiscoveryConfigDeleteAll{
DiscoveryConfigDeleteAll: e,
}
case *IntegrationCreate:
out.Event = &OneOf_IntegrationCreate{
IntegrationCreate: e,
}
case *IntegrationUpdate:
out.Event = &OneOf_IntegrationUpdate{
IntegrationUpdate: e,
}
case *IntegrationDelete:
out.Event = &OneOf_IntegrationDelete{
IntegrationDelete: e,
}

default:
slog.ErrorContext(context.Background(), "Attempted to convert dynamic event of unknown type into protobuf event.", "event_type", in.GetType())
Expand Down

0 comments on commit 5ee4436

Please sign in to comment.