Diff

plugins/mod_storage_internal.lua @ 13402:6877786d73d7

mod_storage_internal, tests: Fix before/after combined with the 'reverse' flag
author Matthew Wild <mwild1@gmail.com>
date Tue, 12 Dec 2023 13:41:14 +0000
parent 13346:53c347043cb5
child 13418:2374c7665d0b
line wrap: on
line diff
--- a/plugins/mod_storage_internal.lua	Sat Dec 09 21:01:49 2023 +0100
+++ b/plugins/mod_storage_internal.lua	Tue Dec 12 13:41:14 2023 +0000
@@ -180,6 +180,7 @@
 				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)