chore: build
Backend - Build & Lint / build (push) Failing after 17m30s

This commit is contained in:
2026-06-23 22:31:34 +02:00
parent e8c79e40ec
commit 26cd84a334
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -106,6 +106,10 @@ func (d *Database) GetDeliveryPersonCommands(livreurUsername string, status stri
if status != "" {
query += " AND status = ?"
args = append(args, status)
} else {
// Ne retourner que les commandes actives — exclure l'historique terminé
// pour éviter le N+1 sur 66+ commandes qui fait timeout le mobile
query += " AND status IN ('assigned', 'en_route', 'arrived', 'livre')"
}
query += " ORDER BY created_at DESC"