Browse Source

#282

feature/282
みてるぞ 2 weeks ago
parent
commit
6ef7310c2d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/app/models/tag.rb

+ 1
- 1
backend/app/models/tag.rb View File

@@ -165,7 +165,7 @@ class Tag < ApplicationRecord
tag_name.update!(canonical: target_tag.tag_name) tag_name.update!(canonical: target_tag.tag_name)
end end


# 再集計
# 投稿件数を再集計
target_tag.update_columns(post_count: PostTag.kept.where(tag: target_tag).count) target_tag.update_columns(post_count: PostTag.kept.where(tag: target_tag).count)
end end




Loading…
Cancel
Save