and another one
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user