chore: update
This commit is contained in:
@@ -1,11 +1,3 @@
|
||||
// ============================================
|
||||
// handlers/delivery_validation_handler.go - CLEAN VERSION
|
||||
// VALIDATION LIVRAISON AVEC VÉRIFICATION PROXIMITÉ GPS
|
||||
//
|
||||
// ⚠️ IMPORTANT: Ce fichier contient UNIQUEMENT les fonctions livreur
|
||||
// Les fonctions ADMIN sont dans cabine_handlers.go
|
||||
// ============================================
|
||||
|
||||
package handlers
|
||||
|
||||
import (
|
||||
@@ -358,11 +350,11 @@ func StartDelivery(c *gin.Context) {
|
||||
|
||||
// Vérifier le statut actuel
|
||||
currentStatus, _ := command["status"].(string)
|
||||
if currentStatus != "support" && currentStatus != "assigned" {
|
||||
if currentStatus != "assigned" {
|
||||
c.JSON(http.StatusBadRequest, gin.H{
|
||||
"error": "Impossible de démarrer cette livraison",
|
||||
"current_status": currentStatus,
|
||||
"message": "La commande doit être en statut 'support' ou 'assigned'",
|
||||
"message": "La commande doit être en statut 'assigned'",
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user