Common: Register PingScanEvent to event serializer

This commit is contained in:
vakaris_zilius 2022-09-30 10:33:59 +00:00 committed by Kekoa Kaaikala
parent 550c375abc
commit d974b03ab0
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
from common.agent_events import CredentialsStolenEvent from common.agent_events import CredentialsStolenEvent, PingScanEvent
from . import AgentEventSerializerRegistry, PydanticAgentEventSerializer from . import AgentEventSerializerRegistry, PydanticAgentEventSerializer
@ -9,3 +9,4 @@ def register_common_agent_event_serializers(
event_serializer_registry[CredentialsStolenEvent] = PydanticAgentEventSerializer( event_serializer_registry[CredentialsStolenEvent] = PydanticAgentEventSerializer(
CredentialsStolenEvent CredentialsStolenEvent
) )
event_serializer_registry[PingScanEvent] = PydanticAgentEventSerializer(PingScanEvent)