mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-21 22:28:19 +02:00
Ensure photo capture and submission process is fully functional
Remove debug logs, update field mapping, and verify photo capture works correctly. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/ce49b69a-6c08-46b0-9012-fdaae8591d14.jpg
This commit is contained in:
1 parent
6d6d8a128a
commit
9d973c12e4
4 files changed
+5
-23
No files matched your search
@@ -243,15 +243,6 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
targetStoreId = user.storeId;
|
||||
}
|
||||
|
||||
// Debug logging - temporary
|
||||
console.log('=== SALE CREATION DEBUG ===');
|
||||
console.log('Request body keys:', Object.keys(req.body));
|
||||
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);
|
||||
console.log('modePaiement:', req.body.modePaiement);
|
||||
|
||||
// Map frontend camelCase to database snake_case for photos
|
||||
const mappedBody = {
|
||||
...req.body,
|
||||
|
||||
Reference in new issue
Block a user