fix
Backend - Build & Lint / build (push) Has been cancelled

This commit is contained in:
2026-07-01 19:39:33 +02:00
parent a95ee51f6c
commit 211df2e8d6
3 changed files with 3 additions and 3 deletions
@@ -10,7 +10,7 @@ import (
// FindLeastLoadedDeliveryman trouve le livreur avec le moins de commandes ET qui peut accepter
func (d *Database) FindLeastLoadedDeliveryman() (string, error) {
keys, err := Redis.Keys(RedisCtx, "delivery:status:*").Result()
keys, err := scanRedisKeys("delivery:status:*")
if err != nil || len(keys) == 0 {
return "", fmt.Errorf("aucun livreur trouvé")
}