From 4b0463968ae4c31c07f7daa08b9d8ded9b832c0b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 12 Dec 2023 13:41:14 +0000 Subject: mod_storage_internal, tests: Fix before/after combined with the 'reverse' flag --- plugins/mod_storage_internal.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua index 1f1ad68f..deab7dfd 100644 --- a/plugins/mod_storage_internal.lua +++ b/plugins/mod_storage_internal.lua @@ -180,6 +180,7 @@ function archive:find(username, query) i = i - 1 return list[i] end + query.before, query.after = query.after, query.before; end if query.key then iter = it.filter(function(item) -- cgit v1.2.3