Skip to content

Commit

Permalink
CV2-4441: fix sentry issue (#1934)
Browse files Browse the repository at this point in the history
  • Loading branch information
melsawy authored Jun 24, 2024
1 parent 1855ccb commit 1d4fa70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/concerns/project_media_cached_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def title_or_description_update
{
model: TiplineRequest,
if: proc { |tr| tr.associated_type == 'ProjectMedia' },
affected_ids: proc { |tr| tr.associated.related_items_ids },
affected_ids: proc { |tr| tr.associated&.related_items_ids },
events: {
create: :recalculate,
}
Expand Down Expand Up @@ -247,7 +247,7 @@ def title_or_description_update
{
model: Dynamic,
if: proc { |d| d.annotation_type == 'report_design' },
affected_ids: proc { |d| d.annotated.related_items_ids },
affected_ids: proc { |d| d.annotated&.related_items_ids },
events: {
save: :cached_field_project_media_report_status_save,
}
Expand Down

0 comments on commit 1d4fa70

Please sign in to comment.