Private
Public Access
fix: arreglado paginador
This commit is contained in:
1 parent
aac88856ac
commit
3af069e9e8
8 files changed
+76
-43
No files matched your search
@@ -84,6 +84,7 @@ func generarLogCreate(tx *gorm.DB) {
|
||||
|
||||
detalles := []logs.LogDetalle{
|
||||
{
|
||||
ID: 0,
|
||||
NombreTabla: tx.Statement.Table,
|
||||
Columna: "*",
|
||||
ValorNuevo: fmt.Sprintf("Registro creado (ID: %v)", obtenerID(tx.Statement.Dest)),
|
||||
@@ -100,6 +101,7 @@ func generarLogDelete(tx *gorm.DB) {
|
||||
|
||||
detalles := []logs.LogDetalle{
|
||||
{
|
||||
ID: 0,
|
||||
NombreTabla: tx.Statement.Table,
|
||||
Columna: "*",
|
||||
ValorAnterior: fmt.Sprintf("Registro eliminado (ID: %v)", obtenerID(tx.Statement.Dest)),
|
||||
@@ -148,6 +150,7 @@ func generarDetalles(tabla string, anterior, nuevo interface{}) []logs.LogDetall
|
||||
|
||||
if vAnt != vNue {
|
||||
detalles = append(detalles, logs.LogDetalle{
|
||||
ID: uint(i),
|
||||
NombreTabla: tabla,
|
||||
Columna: campo.Name,
|
||||
ValorAnterior: vAnt,
|
||||
|
||||
Reference in new issue
Block a user