diff --git a/server/routes.ts b/server/routes.ts index 7f9eec5..3030a26 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -243,12 +243,7 @@ export async function registerRoutes(app: Express): Promise { targetStoreId = user.storeId; } - // Debug logging - console.log('=== PHOTO MAPPING DEBUG ==='); - console.log('photoRecto present:', !!req.body.photoRecto); - console.log('photoVerso present:', !!req.body.photoVerso); - console.log('photoTicket present:', !!req.body.photoTicket); - console.log('photoTicket length:', req.body.photoTicket?.length); + // Photo mapping debug (can be removed in production) // Map frontend camelCase to database snake_case for photos const mappedBody = { @@ -258,15 +253,12 @@ export async function registerRoutes(app: Express): Promise { // Add photo fields with proper mapping, only if they exist and are not empty if (req.body.photoRecto) { mappedBody.photo_recto = req.body.photoRecto; - console.log('Added photo_recto to mappedBody'); } if (req.body.photoVerso) { mappedBody.photo_verso = req.body.photoVerso; - console.log('Added photo_verso to mappedBody'); } if (req.body.photoTicket) { mappedBody.photo_ticket = req.body.photoTicket; - console.log('Added photo_ticket to mappedBody'); } // Remove camelCase versions to avoid conflicts