chore: build
Backend - Build & Lint / build (push) Failing after 24m43s

This commit is contained in:
Nuxgrid
2026-07-11 11:55:09 +02:00
parent 54fb87a464
commit f3141f8f71
-5
View File
@@ -145,11 +145,6 @@ func (d *Database) CancelCommandAtomic(commandID int, username, reason string, f
return penalty, nil
}
// CheckCommandETAExistsAndValid vérifie si une ETA RÉELLE existe (> 0 minutes, non expirée).
// La clé command:eta:{id} est un hash (HSet) — un Redis.Get dessus renvoie
// toujours une erreur WRONGTYPE, ce qui faisait échouer cette vérification à
// chaque appel (aucune annulation n'était jamais détectée comme tardive via
// ce chemin, seul le statut en_route/arrived était pris en compte).
func (d *Database) CheckCommandETAExistsAndValid(commandID int) bool {
etaKey := fmt.Sprintf("command:eta:%d", commandID)