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

View File

@@ -366,7 +366,7 @@ export enum EventType {
ORG_ADMIN_ACCESS_PROJECT = "org-admin-accessed-project",
ORG_ADMIN_BYPASS_SSO = "org-admin-bypassed-sso",
USER_LOGIN = "user-login",
USER_SELECT_ORGANIZATION = "user-select-organization",
SELECT_ORGANIZATION = "select-organization",
CREATE_CERTIFICATE_TEMPLATE = "create-certificate-template",
UPDATE_CERTIFICATE_TEMPLATE = "update-certificate-template",
DELETE_CERTIFICATE_TEMPLATE = "delete-certificate-template",
@@ -2672,8 +2672,8 @@ interface UserLoginEvent {
};
}
interface UserSelectOrganizationEvent {
type: EventType.USER_SELECT_ORGANIZATION;
interface SelectOrganizationEvent {
type: EventType.SELECT_ORGANIZATION;
metadata: {
email: string;
userAgent: string;
@@ -4564,4 +4564,4 @@ export type Event =
| AutomatedRenewCertificate
| AutomatedRenewCertificateFailed
| UserLoginEvent
| UserSelectOrganizationEvent;
| SelectOrganizationEvent;

View File

@@ -686,7 +686,7 @@ export const authLoginServiceFactory = ({
}
},
event: {
type: EventType.USER_SELECT_ORGANIZATION,
type: EventType.SELECT_ORGANIZATION,
metadata: {
email: user.email || "",
userAgent,