app/models/disco_app/concerns/synchronises.rb in disco_app-0.12.6 vs app/models/disco_app/concerns/synchronises.rb in disco_app-0.12.7.pre.puma.pre.3

- old
+ new

@@ -13,9 +13,12 @@ def synchronise_by(shop, data) { id: data[:id] } end def synchronise(shop, data) + if data.is_a?(ShopifyAPI::Base) + data = ActiveSupport::JSON.decode(data.to_json) + end data = data.with_indifferent_access return unless should_synchronise?(shop, data) begin