Rename select org audit log event name

This commit is contained in:
Carlos Monastyrski
2025-11-14 01:07:45 -03:00
parent 09ac5c8df5
commit abe4b127f9
2 changed files with 5 additions and 5 deletions
@@ -366,7 +366,7 @@ export enum EventType {
ORG_ADMIN_ACCESS_PROJECT = "org-admin-accessed-project", ORG_ADMIN_ACCESS_PROJECT = "org-admin-accessed-project",
ORG_ADMIN_BYPASS_SSO = "org-admin-bypassed-sso", ORG_ADMIN_BYPASS_SSO = "org-admin-bypassed-sso",
USER_LOGIN = "user-login", USER_LOGIN = "user-login",
USER_SELECT_ORGANIZATION = "user-select-organization", SELECT_ORGANIZATION = "select-organization",
CREATE_CERTIFICATE_TEMPLATE = "create-certificate-template", CREATE_CERTIFICATE_TEMPLATE = "create-certificate-template",
UPDATE_CERTIFICATE_TEMPLATE = "update-certificate-template", UPDATE_CERTIFICATE_TEMPLATE = "update-certificate-template",
DELETE_CERTIFICATE_TEMPLATE = "delete-certificate-template", DELETE_CERTIFICATE_TEMPLATE = "delete-certificate-template",
@@ -2672,8 +2672,8 @@ interface UserLoginEvent {
}; };
} }
interface UserSelectOrganizationEvent { interface SelectOrganizationEvent {
type: EventType.USER_SELECT_ORGANIZATION; type: EventType.SELECT_ORGANIZATION;
metadata: { metadata: {
email: string; email: string;
userAgent: string; userAgent: string;
@@ -4564,4 +4564,4 @@ export type Event =
| AutomatedRenewCertificate | AutomatedRenewCertificate
| AutomatedRenewCertificateFailed | AutomatedRenewCertificateFailed
| UserLoginEvent | UserLoginEvent
| UserSelectOrganizationEvent; | SelectOrganizationEvent;
@@ -686,7 +686,7 @@ export const authLoginServiceFactory = ({
} }
}, },
event: { event: {
type: EventType.USER_SELECT_ORGANIZATION, type: EventType.SELECT_ORGANIZATION,
metadata: { metadata: {
email: user.email || "", email: user.email || "",
userAgent, userAgent,