diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-03-11 16:32:41 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-03-11 16:32:41 +0000 |
commit | f2ac7bdb8053c3cc984eabcd077583e0ae8c0da2 (patch) | |
tree | 02615b481f420a642185570584bfbedd0cb35a15 /core | |
parent | 335ce1bf2ad08c54bc0ad41a535c0a7f8b60b4b1 (diff) | |
download | prosody-f2ac7bdb8053c3cc984eabcd077583e0ae8c0da2.tar.gz prosody-f2ac7bdb8053c3cc984eabcd077583e0ae8c0da2.zip |
storagemanager, mod_storage_sql: Rename methods to :get_all() and :delete_all()
Diffstat (limited to 'core')
-rw-r--r-- | core/storagemanager.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua index 14de1314..856acad3 100644 --- a/core/storagemanager.lua +++ b/core/storagemanager.lua @@ -167,9 +167,9 @@ local map_shim_mt = { return self.keyval_store:set(username, current); end; remove = {}; - find_key = function (self, key) + get_all = function (self, key) if type(key) ~= "string" or key == "" then - return nil, "find_key only supports non-empty string keys"; + return nil, "get_all only supports non-empty string keys"; end local ret; for username in self.keyval_store:users() do @@ -183,9 +183,9 @@ local map_shim_mt = { end return ret; end; - delete_key = function (self, key) + delete_all = function (self, key) if type(key) ~= "string" or key == "" then - return nil, "delete_key only supports non-empty string keys"; + return nil, "delete_all only supports non-empty string keys"; end local data = { [key] = self.remove }; local last_err; |