fix(crypto): replace deprecated .passthrough() with .loose() (Zod 4)

This commit is contained in:
2026-03-06 16:40:46 +08:00
parent 3d27f8ccfa
commit a5fd9c1833

View File

@@ -27,7 +27,7 @@ const summaryPayloadSchema = z
checkId: z.string().optional(),
inspectionId: z.string().optional(),
})
.passthrough()
.loose()
const MAX_RAW_ZIP_BYTES = 50 * 1024 * 1024
const MAX_SINGLE_FILE_BYTES = 20 * 1024 * 1024