diff options
author | Kim Alvefur <zash@zash.se> | 2021-12-03 10:43:02 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-12-03 10:43:02 +0100 |
commit | d4f8f23818968542dce146baf2144421fdecb653 (patch) | |
tree | 275ecb1aa99736cb14b9d4a4e692b76e3ecc6b91 /plugins | |
parent | 9950712ba366c0b69c6b8fbc3d2d48c3749dcd07 (diff) | |
download | prosody-d4f8f23818968542dce146baf2144421fdecb653.tar.gz prosody-d4f8f23818968542dce146baf2144421fdecb653.zip |
mod_http_file_share: Back out 876e1b6d6ae4
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_http_file_share.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua index dc488c9e..3807e87e 100644 --- a/plugins/mod_http_file_share.lua +++ b/plugins/mod_http_file_share.lua @@ -460,9 +460,9 @@ if expiry >= 0 and not external_base_url then local prune_start = module:measure("prune", "times"); - module:daily("Remove expired files", function(task, boundary_time) + module:daily("Remove expired files", function(_, boundary_time) local prune_done = prune_start(); - local iter, total = assert(uploads:find(nil, { ["start"] = task.last; ["end"] = boundary_time; total = true })); + local iter, total = assert(uploads:find(nil, {["end"] = boundary_time; total = true})); if total == 0 then module:log("info", "No expired uploaded files to prune"); |