Skip to content

Commit

Permalink
Fix: Title should be updated in ElasticSearch when ProjectMedia is up…
Browse files Browse the repository at this point in the history
…dated

Ticket CV2-3986
  • Loading branch information
caiosba authored Jan 2, 2024
1 parent 4e107b7 commit f5b03cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/concerns/project_association.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def update_elasticsearch_data
'project_id' => obj.project_id,
'unmatched' => obj.unmatched,
'channel' => obj.channel.values.flatten.map(&:to_i),
'updated_at' => obj.updated_at.utc
'updated_at' => obj.updated_at.utc,
'title' => obj.title
}
options = { keys: data.keys, data: data, pm_id: obj.id }
model = { klass: obj.class.name, id: obj.id }
Expand Down

0 comments on commit f5b03cc

Please sign in to comment.