audit-log: Move subscription event types to AuditLogEventType enum.

Event types moved: SUBSCRIPTION_CREATED, SUBSCRIPTION_ACTIVATED,
SUBSCRIPTION_DEACTIVATED, SUBSCRIPTION_PROPERTY_CHANGED.
This commit is contained in:
Lauryn Menard
2024-09-03 17:25:32 +02:00
committed by Tim Abbott
parent 56c8cbde1e
commit 10d161638e
9 changed files with 35 additions and 32 deletions

View File

@@ -36,6 +36,7 @@ from zerver.models import (
UserProfile,
)
from zerver.models.groups import SystemGroups
from zerver.models.realm_audit_logs import AuditLogEventType
class Command(ZulipBaseCommand):
@@ -139,7 +140,7 @@ class Command(ZulipBaseCommand):
modified_user=shylock,
modified_stream=stream,
event_last_message_id=0,
event_type=RealmAuditLog.SUBSCRIPTION_CREATED,
event_type=AuditLogEventType.SUBSCRIPTION_CREATED,
event_time=installation_time,
)