Skip to content

Commit

Permalink
fix af delete
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Dec 6, 2024
1 parent 842a9e8 commit 90d983f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/factories/bulkrax/object_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ def find_by_id
end

def delete(_user)
find&.delete(eradicate: true)
obj = find
return false unless obj

obj.delete(eradicate: true)
end

private
Expand Down

0 comments on commit 90d983f

Please sign in to comment.