Investigate issue preventing application functionality and fix errors

Adds debug logging to sales history and database storage for troubleshooting.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/dVex23s
This commit is contained in:
michaelschal committed 2025-07-19 11:14:41 +00:00
1 parent bdeeced6c6
commit 1c58d8a406
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -281,7 +281,9 @@ export class DatabaseStorage implements IStorage {
}
});
return Array.from(salesMap.values());
const result = Array.from(salesMap.values());
console.log('DEBUG: Sample sale with photos:', result.find(s => s.photoRecto || s.photoVerso || s.photoTicket));
return result;
}
async deleteSale(id: number): Promise<void> {