lib/pact_broker/api/resources/pact.rb in pact_broker-2.16.1 vs lib/pact_broker/api/resources/pact.rb in pact_broker-2.17.0
- old
+ new
@@ -85,11 +85,13 @@
badge_url: badge_url_for_latest_pact(pact, base_url)
})
end
def delete_resource
- pact_service.delete(pact_params)
+ with_matrix_refresh do
+ pact_service.delete(pact_params)
+ end
true
end
private
@@ -99,9 +101,12 @@
def pact_params
@pact_params ||= PactBroker::Pacts::PactParams.from_request request, path_info
end
+ def update_matrix_after_request?
+ request.put? || request.patch?
+ end
end
end
end
end