Software /
code /
prosody
Changeset
12004:a2a0e00cbd24
mod_http_file_share: Back out 876e1b6d6ae4
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 Dec 2021 10:43:02 +0100 |
parents | 12003:121c0401f83e |
children | 12005:797197b8607e |
files | plugins/mod_http_file_share.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_http_file_share.lua Fri Dec 03 09:08:23 2021 +0100 +++ b/plugins/mod_http_file_share.lua Fri Dec 03 10:43:02 2021 +0100 @@ -460,9 +460,9 @@ 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");