diff options
author | Kim Alvefur <zash@zash.se> | 2019-05-05 16:07:16 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-05-05 16:07:16 +0200 |
commit | 017e7f74389c0e20a1baaae682fd85b825975592 (patch) | |
tree | 98272daf6730d2f2fc2d6508a9dd45e3773efbf4 /plugins/mod_storage_internal.lua | |
parent | c39b08a25d18e6ca268a3c75f52992255d7b3e50 (diff) | |
download | prosody-017e7f74389c0e20a1baaae682fd85b825975592.tar.gz prosody-017e7f74389c0e20a1baaae682fd85b825975592.zip |
mod_storage_internal: Add support for iterating over users in archive stores
May help with writing a better migrator
Diffstat (limited to 'plugins/mod_storage_internal.lua')
-rw-r--r-- | plugins/mod_storage_internal.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua index f921747e..96780b33 100644 --- a/plugins/mod_storage_internal.lua +++ b/plugins/mod_storage_internal.lua @@ -211,6 +211,10 @@ function archive:summary(username, query) return summary; end +function archive:users() + return datamanager.users(host, self.store, "list"); +end + function archive:delete(username, query) local cache_key = jid_join(username, host, self.store); if not query or next(query) == nil then |