Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: moved to partitionauditlogs schema

Sheen Capadngan5bf6f69fca71
diff --git a/backend/src/ee/routes/v1/project-router.ts b/backend/src/ee/routes/v1/project-router.ts
index e3956731eb..aefca8a7bc 100644
--- a/backend/src/ee/routes/v1/project-router.ts
+++ b/backend/src/ee/routes/v1/project-router.ts
@@ -1,6 +1,6 @@
import { z } from "zod";
-import { AuditLogsSchema, SecretSnapshotsSchema } from "@app/db/schemas";
+import { PartitionedAuditLogsSchema, SecretSnapshotsSchema } from "@app/db/schemas";
import { EventType, UserAgentType } from "@app/ee/services/audit-log/audit-log-types";
import { AUDIT_LOGS, PROJECTS } from "@app/lib/api-docs";
import { getLastMidnightDateISO, removeTrailingSlash } from "@app/lib/fn";
@@ -120,7 +120,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
}),
response: {
200: z.object({
- auditLogs: AuditLogsSchema.omit({
+ auditLogs: PartitionedAuditLogsSchema.omit({
eventMetadata: true,
eventType: true,
actor: true,
diff --git a/backend/src/server/routes/v1/organization-router.ts b/backend/src/server/routes/v1/organization-router.ts
index 439950f1cd..68e1864684 100644
--- a/backend/src/server/routes/v1/organization-router.ts
+++ b/backend/src/server/routes/v1/organization-router.ts
@@ -1,12 +1,12 @@
import { z } from "zod";
import {
- AuditLogsSchema,
GroupsSchema,
IncidentContactsSchema,
OrganizationsSchema,
OrgMembershipsSchema,
OrgRolesSchema,
+ PartitionedAuditLogsSchema,
UsersSchema
} from "@app/db/schemas";
import { EventType, UserAgentType } from "@app/ee/services/audit-log/audit-log-types";
@@ -117,7 +117,7 @@ export const registerOrgRouter = async (server: FastifyZodProvider) => {
response: {
200: z.object({
- auditLogs: AuditLogsSchema.omit({
+ auditLogs: PartitionedAuditLogsSchema.omit({
eventMetadata: true,
eventType: true,
actor: true,