This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user