Software /
code /
prosody-modules
Diff
mod_export_skeletons/mod_export_skeletons.lua @ 4821:17fbe82d4bfe
mod_export_skeletons: Remove wildcard query
It is not supported by the storage API, only deletion supports
wildcards.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Dec 2021 14:51:55 +0100 |
parent | 4820:5704082b8703 |
line wrap: on
line diff
--- a/mod_export_skeletons/mod_export_skeletons.lua Fri Dec 10 14:19:10 2021 +0100 +++ b/mod_export_skeletons/mod_export_skeletons.lua Fri Dec 10 14:51:55 2021 +0100 @@ -53,7 +53,7 @@ end local archive = module:context(host):open_store(store, "archive"); - local iter, total = assert(archive:find(username == "*" or username, query)) + local iter, total = assert(archive:find(username, query)) if total then io.stderr:write(string.format("Processing %d entries\n", total)); end for _, item in iter do local clean = skeleton(item);