diff --git a/app/controllers/api/customers_controller.rb b/app/controllers/api/customers_controller.rb index daa72b70..62bc8a7b 100755 --- a/app/controllers/api/customers_controller.rb +++ b/app/controllers/api/customers_controller.rb @@ -24,8 +24,8 @@ class Api::CustomersController < Api::ApiController def get_customer_by_account account_no = params[:account_no] - unless @customer = Customer.find_by(paypar_account_no: account_no); - response = Customer.search_paypar_account_no(filter) + unless @customer = Customer.find_by(paypar_account_no: account_no) + response = Customer.search_paypar_account_no(account_no) if response["status"] == true @customer = Customer.create({ name: response["customer_data"]["name"],