diff options
author | Kim Alvefur <zash@zash.se> | 2019-03-22 02:09:38 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-03-22 02:09:38 +0100 |
commit | 3e5243f2d2df3e4933a9bd7fdaf13c848265178e (patch) | |
tree | 98dd54e88fa0a1bd25e4e3e7509fc6eb27f78b21 | |
parent | c4b5bfdc5f2da4cdbe085a5a95c6418f802ec56e (diff) | |
download | prosody-3e5243f2d2df3e4933a9bd7fdaf13c848265178e.tar.gz prosody-3e5243f2d2df3e4933a9bd7fdaf13c848265178e.zip |
mod_storage_sql: Don't increment counter twice (fixes accounting error)
-rw-r--r-- | plugins/mod_storage_sql.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index 3028bb72..154daf06 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -285,7 +285,6 @@ function archive_store:append(username, key, value, when, with) archive_item_count_cache:set(cache_key, item_count); end else - item_count = item_count + 1; key = uuid.generate(); end local t, encoded_value = assert(serialize(value)); |