We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b20fd02 commit 2b97214Copy full SHA for 2b97214
app/jobs/delete_action_job.rb
@@ -31,7 +31,7 @@ def perform
31
32
# Ignore errors if the target resource has already been deleted (e.g., by a parallel job)
33
quoted_table_name = @model_class.db.quote_identifier(@model_class.table_name)
34
- errors.reject! { |err| err.is_a?(Sequel::NoExistingObject) && err.message.include?("DELETE FROM #{quoted_table_name}") }
+ errors.reject! { |err| err.is_a?(Sequel::NoExistingObject) && err.message.include?("DELETE FROM #{quoted_table_name}") } unless errors.frozen?
35
36
raise errors.first unless errors&.empty?
37
0 commit comments