ソースを参照

Use customer search endpoint

Ben Cox 10 年 前
コミット
f755888b4c
1 ファイル変更1 行追加1 行削除
  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