Skip to content

Commit 8cc0b40

Browse files
committed
fix
1 parent c2aabcb commit 8cc0b40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/zod/url-validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export const documentUploadSchema = z
177177
(data) => {
178178
// Skip content type validation if it's not provided (e.g., for Notion files)
179179
if (!data.contentType) {
180-
return true;
180+
return data.type === "notion";
181181
}
182182

183183
// Validate that content type matches the declared file type

0 commit comments

Comments
 (0)