primeros cambios hechos para tener el multitenant

This commit is contained in:
fede committed 2026-11-10 17:06:56 -03:00
1 parent 34ad4424f9
commit 4e082e8767
132 files changed
+6202 -762

No files matched your search

+3 -3
View File
@@ -10,13 +10,13 @@ import (
)
func ObtenerLogs(c *gin.Context) {
pag, err := strconv.ParseUint(c.Param("p"), 10, 64)
pag, err := strconv.ParseUint(c.Param("p"), 10, 64)
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return
}
repo := r.ObtenerRepositorios().Logs
repo := r.ObtenerRepositorios(c).Logs
logs, err := repo.ObtenerPorPaginas(uint(pag))
@@ -35,7 +35,7 @@ func ObtenerLogs(c *gin.Context) {
logsdto := dto_builders.NewLogTablaBuilder().ConLogs(logs).Build()
c.JSON(http.StatusOK, gin.H{
"logs": logsdto,
"logs": logsdto,
"maxlenght": cantpags,
})
}