lib/scrivito/workspace/publish_checker.rb in scrivito_sdk-1.0.0 vs lib/scrivito/workspace/publish_checker.rb in scrivito_sdk-1.1.0.rc1

- old
+ new

@@ -9,12 +9,11 @@ response.with_indifferent_access end return false unless responses.all? do |response| raise_invalid_certificates_error if response[:content_state_id].nil? - - response[:content_state_id] == workspace.content_state.content_state_id + response[:content_state_id] == workspace.content_state_id end assert_passing_result(responses) true rescue ActiveSupport::MessageVerifier::InvalidSignature @@ -49,10 +48,10 @@ until_element = offset + objs.size - 1 until_element = 'END' if until_element >= (changed_obj_count - 1) pass_sub_hash = { workspace_id: workspace.id, - content_state_id: workspace.content_state.content_state_id, + content_state_id: workspace.content_state_id, from: offset, until: until_element, } { result: 'pass', pass: pass_sub_hash, certificate: sign(pass_sub_hash) }