and another one

This commit is contained in:
2026-02-10 18:07:44 +11:00
parent 8d5cdd1fc8
commit dd382faa08
10 changed files with 52 additions and 60 deletions

View File

@@ -75,10 +75,10 @@ func GetAuditLogs(ctx context.Context, tx bun.Tx, pageOpts *PageOpts, filters *A
Order: bun.OrderDesc,
OrderBy: "created_at",
}
return GetList[AuditLog](tx, pageOpts, defaultPageOpts).
return GetList[AuditLog](tx).
Relation("User").
Filter(filters.filters...).
GetAll(ctx)
GetPaged(ctx, pageOpts, defaultPageOpts)
}
// GetAuditLogsByUser retrieves audit logs for a specific user