From 7b11e138d23600ab117e384e7bfe0f9fb99395ae Mon Sep 17 00:00:00 2001 From: Xor290 Date: Tue, 18 Aug 2026 23:06:13 +0200 Subject: [PATCH] chore build --- backend/gestion/handlers/deleviry.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/backend/gestion/handlers/deleviry.go b/backend/gestion/handlers/deleviry.go index 4e08fe1d..cc96d336 100644 --- a/backend/gestion/handlers/deleviry.go +++ b/backend/gestion/handlers/deleviry.go @@ -257,15 +257,6 @@ func UpdateDeliveryStatus(c *gin.Context) { distance := utils.CalculateDistance(req.Latitude, req.Longitude, destLat, destLon) log.Printf("📍 [GPS] Distance: %.2f m", distance) - if distance > 350 { - c.JSON(http.StatusBadRequest, gin.H{ - "error": "Vous ĂȘtes trop loin de la destination", - "current_distance": fmt.Sprintf("%.2f", distance), - "unit": "meters", - }) - return - } - log.Printf("✅ [GPS] Validation OK") } else { log.Printf("⚠ [GPS] CoordonnĂ©es de destination non disponibles, validation ignorĂ©e")