mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Improve advertising list sorting for smaller numbers first
Add console logging to debug and confirm ascending order sorting by advertisement number in the database storage. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2e1318c6-77b3-4174-b8c7-432d781590ed Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/2e1318c6-77b3-4174-b8c7-432d781590ed/TaNhylA
This commit is contained in:
1 parent
287b2aa702
commit
d43e72fd70
2 files changed
+6
No files matched your search
@@ -1210,6 +1210,12 @@ export class DatabaseStorage implements IStorage {
|
||||
}
|
||||
|
||||
const results = await query.orderBy(asc(publicities.pubNumber));
|
||||
|
||||
// LOG: Debug du tri des publicités
|
||||
console.log(`📋 PUBLICITES: Tri par pubNumber croissant - ${results.length} résultats:`,
|
||||
results.slice(0, 3).map(p => `N°${p.pubNumber}(${p.designation})`).join(', ') +
|
||||
(results.length > 3 ? '...' : '')
|
||||
);
|
||||
|
||||
const publicityIds = results.map((p: any) => p.id);
|
||||
const participations = publicityIds.length > 0
|
||||
|
||||
Reference in new issue
Block a user