fix: ajuste handler

This commit is contained in:
NANDO9322 2026-02-06 22:07:33 -03:00
parent c1c71643bb
commit 3b7bd6a181

View file

@ -1,6 +1,7 @@
package cadastro_fot package cadastro_fot
import ( import (
"fmt"
"net/http" "net/http"
"photum-backend/internal/db/generated" "photum-backend/internal/db/generated"
@ -137,6 +138,7 @@ func (h *Handler) List(c *gin.Context) {
regiao := c.GetString("regiao") regiao := c.GetString("regiao")
var response []CadastroFotResponse var response []CadastroFotResponse
fmt.Printf("[DEBUG] List FOT - Regiao: %s, EmpresaID: %s\n", regiao, empresaID)
if empresaID != "" { if empresaID != "" {
rows, err := h.service.ListByEmpresa(c.Request.Context(), empresaID, regiao) rows, err := h.service.ListByEmpresa(c.Request.Context(), empresaID, regiao)