changeset 5319:5043108b14f4

mod_audit: Display most recent entries first, rather than showing oldest This matches the output of 'lastb'.
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 Apr 2023 12:03:29 +0100
parents c5ecfb06afde
children c450dbf6c0fa
files mod_audit/mod_audit.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_audit/mod_audit.lua	Fri Apr 07 12:00:31 2023 +0100
+++ b/mod_audit/mod_audit.lua	Fri Apr 07 12:03:29 2023 +0100
@@ -142,6 +142,7 @@
 	local results, err = store:find(nil, {
 		with = arg.user;
 		limit = arg.limit and tonumber(arg.limit) or nil;
+		reverse = true;
 	})
 	if not results then
 		print("EE: Failed to query audit log: "..tostring(err));