Skip to content

Commit

Permalink
Publish deletion first to avoid encountering tombstones
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpierce committed Dec 6, 2024
1 parent d4cbf64 commit cfbfa76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hyrax/transactions/steps/delete_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def initialize(persister: Hyrax.persister, publisher: Hyrax.publisher)
def call(resource, user: nil)
return Failure(:resource_not_persisted) unless resource.persisted?

@persister.delete(resource: resource)
publish_changes(resource: resource, user: user)
@persister.delete(resource: resource)

Success(resource)
end
Expand Down

0 comments on commit cfbfa76

Please sign in to comment.