Skip to content

Commit

Permalink
CV2-5193: fix sentry issue
Browse files Browse the repository at this point in the history
  • Loading branch information
melsawy committed Sep 3, 2024
1 parent 325944d commit 3402d9c
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 3402d9c

Please sign in to comment.