Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: use project id for audit log retention update
syedmazharalirazaa708ab57e22b
diff --git a/frontend/src/hooks/api/projects/queries.tsx b/frontend/src/hooks/api/projects/queries.tsxindex 3060823f04..e38971423a 100644--- a/frontend/src/hooks/api/projects/queries.tsx+++ b/frontend/src/hooks/api/projects/queries.tsx@@ -272,9 +272,9 @@ export const useUpdateWorkspaceAuditLogsRetention = () => {const queryClient = useQueryClient();return useMutation<Project, object, UpdateAuditLogsRetentionDTO>({- mutationFn: async ({ projectSlug, auditLogsRetentionDays }) => {+ mutationFn: async ({ projectId, auditLogsRetentionDays }) => {const { data } = await apiRequest.put(- `/api/v1/projects/${projectSlug}/audit-logs-retention`,+ `/api/v1/projects/${projectId}/audit-logs-retention`,{auditLogsRetentionDays}diff --git a/frontend/src/hooks/api/projects/types.ts b/frontend/src/hooks/api/projects/types.tsindex 5edb61e3cb..7a9ab2e467 100644--- a/frontend/src/hooks/api/projects/types.ts+++ b/frontend/src/hooks/api/projects/types.ts@@ -93,7 +93,7 @@ export type UpdateProjectDTO = {};export type UpdatePitVersionLimitDTO = { projectSlug: string; pitVersionLimit: number };-export type UpdateAuditLogsRetentionDTO = { projectSlug: string; auditLogsRetentionDays: number };+export type UpdateAuditLogsRetentionDTO = { projectId: string; auditLogsRetentionDays: number };export type ToggleAutoCapitalizationDTO = { projectID: string; state: boolean };export type ToggleDeleteProjectProtectionDTO = { projectID: string; state: boolean };diff --git a/frontend/src/pages/project/SettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsx b/frontend/src/pages/project/SettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsxindex cf093c21a0..8a2e02c594 100644--- a/frontend/src/pages/project/SettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsx+++ b/frontend/src/pages/project/SettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsx@@ -57,7 +57,7 @@ export const AuditLogsRetentionSection = () => {await updateAuditLogsRetention({auditLogsRetentionDays,- projectSlug: currentProject.slug+ projectId: currentProject.id});createNotification({