remove usage of increment! #2835
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user