Skip to content

Commit 2b97214

Browse files
committed
ensure array is not frozen
1 parent b20fd02 commit 2b97214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/jobs/delete_action_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def perform
3131

3232
# Ignore errors if the target resource has already been deleted (e.g., by a parallel job)
3333
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}") }
34+
errors.reject! { |err| err.is_a?(Sequel::NoExistingObject) && err.message.include?("DELETE FROM #{quoted_table_name}") } unless errors.frozen?
3535

3636
raise errors.first unless errors&.empty?
3737

0 commit comments

Comments
 (0)