mod_storage_sql: Don't increment counter twice (fixes accounting error)

remotes/origin/master
Kim Alvefur 7 years ago
parent c4b5bfdc5f
commit 3e5243f2d2
  1. 1
      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));

Loading…
Cancel
Save