chore: refacto

This commit is contained in:
2026-04-20 19:41:52 +02:00
parent 5fc52c72ee
commit 2e9827af98
46 changed files with 497 additions and 648 deletions
+1 -2
View File
@@ -12,6 +12,7 @@ import (
"net/http"
"strconv"
"github.com/gin-gonic/gin"
)
@@ -41,7 +42,6 @@ func GetMyCompletedOrders(c *gin.Context) {
log.Printf("❌ [HISTORY] Erreur: %v", err)
c.JSON(http.StatusInternalServerError, gin.H{
"error": "Erreur lors de la récupération de l'historique",
"details": err.Error(),
})
return
}
@@ -120,7 +120,6 @@ func GetMyCompletedOrdersWithItems(c *gin.Context) {
log.Printf("❌ [HISTORY_DETAILED] Erreur: %v", err)
c.JSON(http.StatusInternalServerError, gin.H{
"error": "Erreur lors de la récupération de l'historique",
"details": err.Error(),
})
return
}