aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-12-12 13:41:14 +0000
committerMatthew Wild <mwild1@gmail.com>2023-12-12 13:41:14 +0000
commit4b0463968ae4c31c07f7daa08b9d8ded9b832c0b (patch)
tree3bd2ddec373a9d23e55be2ee8928e3fc4a940e98 /plugins
parent9dd7726419ef7f86aaca3430c1c92e98a6075f3b (diff)
downloadprosody-4b0463968ae4c31c07f7daa08b9d8ded9b832c0b.tar.gz
prosody-4b0463968ae4c31c07f7daa08b9d8ded9b832c0b.zip
mod_storage_internal, tests: Fix before/after combined with the 'reverse' flag
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_internal.lua1
1 files changed, 1 insertions, 0 deletions
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)