sync: 0.7.0 from main (759eb02deab38d02dc6b4a0156c30eec9b440e68)
Build and Publish Docker Image / Build and Deploy (push) Failing after 1m45s

This commit is contained in:
github-actions[bot] committed 2026-04-17 18:41:28 +00:00
1 parent 89eaae337e
commit 23c46c34e1
34 files changed
+2032 -430

No files matched your search

-5
View File
@@ -59,7 +59,6 @@ import (
server_handler "github.com/EvolutionAPI/evolution-go/pkg/server/handler"
storage_interfaces "github.com/EvolutionAPI/evolution-go/pkg/storage/interfaces"
minio_storage "github.com/EvolutionAPI/evolution-go/pkg/storage/minio"
"github.com/EvolutionAPI/evolution-go/pkg/telemetry"
user_handler "github.com/EvolutionAPI/evolution-go/pkg/user/handler"
user_service "github.com/EvolutionAPI/evolution-go/pkg/user/service"
whatsmeow_service "github.com/EvolutionAPI/evolution-go/pkg/whatsmeow/service"
@@ -200,8 +199,6 @@ func setupRouter(db *gorm.DB, authDB *sql.DB, sqliteDB *sql.DB, config *config.C
// NOVO: PollHandler usando PollService já inicializado no whatsmeowService (evita dupla inicialização)
pollHandler := poll_handler.NewPollHandler(whatsmeowService.GetPollService(), loggerWrapper)
telemetry := telemetry.NewTelemetryService()
r := gin.Default()
// CORS middleware — must be before everything else
@@ -218,8 +215,6 @@ func setupRouter(db *gorm.DB, authDB *sql.DB, sqliteDB *sql.DB, config *config.C
c.Next()
})
r.Use(telemetry.TelemetryMiddleware())
r.Use(core.GateMiddleware(runtimeCtx))
// License routes (always accessible, even without license)