Explorar el Código

Use customer search endpoint

Ben Cox hace 10 años
padre
commit
f755888b4c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/shopify_api/resources/customer_saved_search.rb

+ 1 - 1
lib/shopify_api/resources/customer_saved_search.rb

@@ -3,7 +3,7 @@ require 'shopify_api/resources/customer'
 module ShopifyAPI
   class CustomerSavedSearch < Base
     def customers(params = {})
-      Customer.find(:all, :params => params.merge({ :customer_saved_search_id => self.id }))
+      Customer.search(params.merge({:saved_search_id => self.id}))
     end
   end
 end