Software /
code /
prosody-modules
Changeset
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 |
parents | 4820:5704082b8703 |
children | 4822:b4cc6ee9fc8c |
files | mod_export_skeletons/README.md mod_export_skeletons/mod_export_skeletons.lua |
diffstat | 2 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_export_skeletons/README.md Fri Dec 10 14:19:10 2021 +0100 +++ b/mod_export_skeletons/README.md Fri Dec 10 14:51:55 2021 +0100 @@ -11,10 +11,6 @@ Multiple user JIDs can be given. -Some storage drivers such as [SQL][doc:modules:mod_storage_sql] allows -exporting all users at once by giving the special username `*`, i.e. -`prosodyctl mod_export_skeletons \*@example.com`. - ## Options `--store=archive`
--- 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);