Skip to content

Commit

Permalink
Add timestamp conditions only for parallel safe strategy
Browse files Browse the repository at this point in the history
Add timestamp conditions only for parallel safe strategy
  • Loading branch information
Ladas committed Aug 27, 2018
1 parent c36d4bd commit 4f3c6dc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def build_update_query(all_attribute_keys, hashes)
all_attribute_keys_array << :id

# If there is not version attribute, the version conditions will be ignored
version_attribute = if supports_remote_data_timestamp?(all_attribute_keys)
version_attribute = if inventory_collection.parallel_safe? && supports_remote_data_timestamp?(all_attribute_keys)
:resource_timestamp
elsif supports_remote_data_version?(all_attribute_keys)
elsif inventory_collection.parallel_safe? && supports_remote_data_version?(all_attribute_keys)
:resource_version
end

Expand Down

0 comments on commit 4f3c6dc

Please sign in to comment.