checks retention routes

This commit is contained in:
Alex Holliday committed 2025-11-27 23:37:29 +00:00
1 parent ce97e201c9
commit 08887bbc58
6 files changed
+104 -3

No files matched your search

+7
View File
@@ -646,3 +646,10 @@ export const systemSettingsSchema = z
.transform((val) => (typeof val === "string" ? val === "true" : val)),
})
.strip();
export const updateRetentionPolicySchema = z.object({
checksRetentionDays: z
.number()
.min(1, "Retention days must be at least 1")
.max(365, "Retention days cannot exceed 365 days"),
});