mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Move into MiniSQLMultisiteConnection, and add test for rollback
This commit is contained in:
@@ -686,7 +686,7 @@ class Topic < ActiveRecord::Base
|
||||
|
||||
if post = self.ordered_posts.first
|
||||
notified_user_ids = [post.user_id, post.last_editor_id].uniq
|
||||
TransactionHelper.after_commit do
|
||||
DB.after_commit do
|
||||
Jobs.enqueue(:notify_category_change, post_id: post.id, notified_user_ids: notified_user_ids)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user