Skip to content

Commit

Permalink
CV2-5193: fix sentry issue (#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
melsawy authored Sep 3, 2024
1 parent 62dbb95 commit f6eb4c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/models/annotations/annotation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ def destroy
dec = self.disable_es_callbacks
skip_ability = self.skip_check_ability
a = self.load
a.disable_es_callbacks = dec
a.skip_check_ability = skip_ability
a.destroy
unless a.nil?
a.disable_es_callbacks = dec
a.skip_check_ability = skip_ability
a.destroy
end
end

private
Expand Down

0 comments on commit f6eb4c0

Please sign in to comment.