fix ref to story

This commit is contained in:
Peter Bhat Harkins 2020-12-19 08:40:13 -06:00
parent 2c216baa04
commit 17d536973c
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class StoriesController < ApplicationController
if @story.merged_into_story
@story.merge_story_short_id = @story.merged_into_story.short_id
User.update_counters self.user_id, karma: (self.votes.count * -2)
User.update_counters @story.user_id, karma: (@story.votes.count * -2)
end
end