chore: fix CI
This commit is contained in:
@@ -472,20 +472,3 @@ func DeleteCommandByCabine(c *gin.Context) {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// ============================================
|
||||
// HELPER
|
||||
// ============================================
|
||||
|
||||
func getStatusCancelReason(status string) string {
|
||||
reasons := map[string]string{
|
||||
"livre": "La commande a déjà été livrée",
|
||||
"approved": "La livraison a été confirmée",
|
||||
"cancelled": "La commande est déjà annulée",
|
||||
"disabled": "La commande a été désactivée",
|
||||
}
|
||||
if reason, ok := reasons[status]; ok {
|
||||
return reason
|
||||
}
|
||||
return "Statut ne permettant pas l'annulation"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user