remove usage of increment! #2835

This commit is contained in:
r888888888
2017-01-17 15:46:21 -08:00
parent 8333673b62
commit 237c997ae1
3 changed files with 3 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ class Upload < ActiveRecord::Base
post = convert_to_post
post.distribute_files
if post.save
CurrentUser.increment!(:post_upload_count)
User.where(id: CurrentUser.id).update_all("post_upload_count = post_upload_count + 1")
create_artist_commentary(post) if include_artist_commentary?
ugoira_service.save_frame_data(post) if is_ugoira?
update_attributes(:status => "completed", :post_id => post.id)