Commit f09429b2 authored by Douwe Maan's avatar Douwe Maan

Schedule ES index update after commit

parent 53dc2fdd
......@@ -5,8 +5,7 @@ class IssueAssignee < ActiveRecord::Base
belongs_to :assignee, class_name: "User", foreign_key: :user_id
# EE-specific
after_create :update_elasticsearch_index
after_destroy :update_elasticsearch_index
after_commit :update_elasticsearch_index, on: [:create, :destroy]
# EE-specific
def update_elasticsearch_index
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment