Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: search audit log by level (#17155)

ecmadao140f5eb8614b
diff --git a/frontend/src/store/modules/v1/auditLog.ts b/frontend/src/store/modules/v1/auditLog.ts
index b8cd744b16..215cd3066d 100644
--- a/frontend/src/store/modules/v1/auditLog.ts
+++ b/frontend/src/store/modules/v1/auditLog.ts
@@ -5,6 +5,7 @@ import { defineStore } from "pinia";
import { auditLogServiceClientConnect } from "@/grpcweb";
import type { SearchAuditLogsParams } from "@/types";
import {
+ AuditLog_Severity,
ExportAuditLogsRequestSchema,
SearchAuditLogsRequestSchema,
} from "@/types/proto-es/v1/audit_log_service_pb";
@@ -19,7 +20,7 @@ const buildFilter = (search: SearchAuditLogsParams): string => {
filter.push(`method == "${search.method}"`);
}
if (search.level) {
- filter.push(`severity == "${search.level}"`);
+ filter.push(`severity == "${AuditLog_Severity[search.level]}"`);
}
if (search.userEmail) {
filter.push(`user == "${userNamePrefix}${search.userEmail}"`);