Merge pull request #158 from Hestia-Homes/new-reporting

passing enforce fabric first to backend
This commit is contained in:
KhalimCK 2026-01-06 03:53:10 +08:00 committed by GitHub
commit 7ac471173a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,7 @@ const PresignedUrlBodySchema = z
file_type: z.enum(["csv", "xlsx"]).optional(), // Specify the file type
file_format: z.enum(["domna_asset_list"]).optional().nullable(), // Specify the file format
sheet_name: z.string().optional().nullable(), // Specify the sheet name if applicable
enforce_fabric_first: z.boolean().optional().default(false),
})
.refine((data) => data.goal !== "Increasing EPC" || !!data.goal_value, {
path: ["goal_value"],