feat: product barcode images
This commit is contained in:
@ -4,7 +4,10 @@ const path = "src/lib/client/zod.gen.ts";
|
||||
let content = fs.readFileSync(path, "utf8");
|
||||
|
||||
// Replace only for the upload schema
|
||||
content = content.replace("upload_file: z.string", "upload_file: z.any");
|
||||
const target = "upload_file: z.string";
|
||||
while (content.includes(target)) {
|
||||
content = content.replace(target, "upload_file: z.any");
|
||||
}
|
||||
|
||||
fs.writeFileSync(path, content);
|
||||
console.log("✅ Fixed zod schema for upload_file");
|
||||
|
||||
Reference in New Issue
Block a user